write a c++ program to "Find the 3% total salaries of John, Paul and Simon."
#include<iostream>
using namespace std;
int main(){
double j_salary = 30000;
double p_salary = 4000;
double s_salary = 7000;
cout<<"3% of John salary is: "<<j_salary * 0.03<<endl;
cout<<"3% of Paul salary is: "<<p_salary * 0.03<<endl;
cout<<"3% of Simon salary is: "<<s_salary * 0.03<<endl;
}
Comments
Leave a comment