#include<iostream> using namespace std; int main( ) { int grades; float salary, bonus; cout<<"enter your salary"<<endl; cin>>salary; cout<<"enter your grades"<<endl; cin>>grades; if(grades>15) bonus=salary*50/100; else bonus=salary*25/100; salary=salary+bonus; cout<<"total salary is "<<salary<<endl; }
Post A Comment:
0 comments: