why my answer is wrong?
mohsen · 2014-05-08 01:48:15
Hi,i coded this question but when i submit this i have a error on answer,but in my compiler this is true!
in question just we have 12 number and one answer?or this is countinuing number?
thanks
MohammadAmin · 2014-05-09 07:45:30
could you post your code here?
saghar · 2016-01-16 18:46:47
Hi,i coded this question but when i submit this i have a error on answer,but in my compiler this is true! pls help me.
includeusing namespace std; int main() { float a, sum = 0; for (int i = 0;i < 12;i++) { cin >> a; sum = sum + a; } cout << "$" << sum / 12; return 0; }
pages:
- 1