#include
#include
main ()
{
int nilai [10] = {8, 12, 20, 15, 7, 5, 6, 4, 32, 3};
int i, jumlah= 0;
float rata-rata;
for (i=0; i<10 i="" p="">jumlah+=nilai [i];
rata_rata= (float) Jumlah / 10;
cout<<"\n\nDeretan bilangan = ";
for (i=0; i<10 i="" p="">cout<
cout<<"\nJumlah bilangan = "<
}
0 komentar:
Posting Komentar