void main()
{
int data[5] = {2,5,7,4,8}, total = 0;
int i;
printf("Program menjumlahkan nilai array\n");
printf("--------------------------------\n\n");
for (i=0;i<5 i="" p="">total = total + data[i];
printf ("Total Nilai= %i\n",total);
printf ("\nBy Meldiya Reza\n");
}
5>
0 comments:
Post a Comment