Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- using namespace std;
- int main()
- {
- int ocena;
- cin>>ocena;
- int ocena_min;
- if(ocena==2){
- ocena_min=60;
- }
- else if(ocena==3){
- ocena_min=70;
- }
- else if(ocena==4){
- ocena_min=80;
- }
- else ocena_min=90;
- ocena_min*=5;
- int testovi[4];
- for(int i=0;i<4;i++){
- cin>>testovi[i];
- ocena_min-=testovi[i];
- }
- if(ocena_min>100){
- cout<<"GRESHKA"<<endl;
- }
- else if(ocena_min<0){
- cout<<"0"<<endl;
- }
- else cout<<ocena_min<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement