pages:
  • 1
mohsen SAYS

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 SAYS

could you post your code here?

saghar SAYS

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.

include

using 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; }