[ create a new paste ] login | about

Link: http://codepad.org/Yb7VkSYA    [ raw code | output | fork ]

C++, pasted on Sep 11:
1
2
3
4
5
6
7
8
9
10
double salary_annual, salary_monthly, salary_biweekly;
cout << fixed;
cout << setprecision(2);
cout << "Please input your yearly salary in USD: "<< endl;
cin >> salary_annual;
salary_monthly=salary_annual/12;
cout << "yearly salary:$" << salary_annual << endl;
salary_biweekly=salary_monthly/2;
cout << "monthly salary:$" << salary_monthly << endl;
cout << "biweekly salary:$" << salary_biweekly << endl;


Output:
1
2
Line 2: error: expected constructor, destructor, or type conversion before '<<' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: