[ create a new paste ] login | about

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

C++, pasted on Sep 11:
1
2
3
4
5
6
7
8
9
10
11
12
double salary_annual, salary_monthly, salary_biweekly;
{
cout << fixed << 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;
return 0;
}


Output:
1
2
Line 2: error: expected unqualified-id before '{' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: