40/250
+20
2 года назад
Информатика
Студенческий
#include <iostream>
using namespace std;
int main(){
double av;
int k, len;
cout << "Put your average diploma score: ";
cin >> av;
cout << "Put amount of your working months";
cin >> len;
if(len == 0) k = 1;
else if(len < 24) k = 13;
else k = 16;
av * k >= 45 ? cout << "Your application has been accepted" : cout << "Your application has been denied";
}
#include <iostream>
using namespace std;
int main(){
double av;
int k, len;
cout << "Put your average diploma score: ";
cin >> av;
cout << "Put amount of your working months";
cin >> len;
if(len == 0) k = 1;
else if(len < 24) k = 13;
else k = 16;
av * k >= 45 ? cout << "Your application has been accepted" : cout << "Your application has been denied";
}