Code : -
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <iostream> #include <cstdio> using namespace std; int main() { double sum = 0.0; for(int i = 1;i<=12;i++) { double temp; cin>>temp; sum+=temp; } printf("$%.2f\n",sum/12*1.000000); return 0; } |
No comments:
Post a Comment