#include <conio.h>
void main()
{
float n, total, rata2;
total = 0;
for(int i=0; i<10; i++);
{
cout<<”Masukkan nilai ke “<<(i+1)<>n;
total = total + n;
}
rata2 = total / 10;
cout<<”Total = “<<total<<endl;
cout<<”Rata2 = “<<rata2<<endl;
getch();
return 0;
}
0 komentar:
Posting Komentar