#include<stdio.h>
main()
{
float x[]={9,8,7},jum=0;
int i;
for (i=0;i<3;i++)
jum +=x[i];
printf ("jumlah = %.1f\n",jum);
}
main()
{
float x[]={9,8,7},jum=0;
int i;
for (i=0;i<3;i++)
jum +=x[i];
printf ("jumlah = %.1f\n",jum);
}
Output : 24
0 comments:
Posting Komentar