#include <iostream>#include <string> using namespace std; int main() { stringgrade; int salary; // Inout cout << "Enter grade: "; cin >> grade; cout << "Enter salary:"; cin >> salary; // Output if (grade == "3") { int incSalary = salary + 7432; cout << "Increased salary Rs. " << incSalary; return 0; } if (grade == "07") { int incSalary = salary + 12955; cout << "Increased salary Rs. " << incSalary; return 0; } if (grade == "14") { int incSalary = salary + 15400; cout << "Increased salary Rs. " << incSalary; return 0; } if (grade == "19") { int incSalary = salary + 29412; cout << "Increased salary Rs. " << incSalary; return 0; } cout << "There is no gradewith such code!"; return 0;}
Comments