Print Friendly and PDF

#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;

}
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: