| The Following User Says Thank You to onethreealpha For This Useful Post: | ||
#include <iostream.h>
#include <stdio.h>
int main(){
using namespace std;
int s; //salary
cout << "Enter your salary: " ;
cin >> s;
if (s>=5000)
cout << "Your bonus is 500";
else if (s>=3000)
cout << "Your bonus is 300";
else if (s>=1000)
cout << "Your bonus is 100";
else
cout << "No bonus";
getchar();
return 0;
}
| The Following User Says Thank You to SubCore For This Useful Post: | ||