Quis Online Soal I (Pertama)

Posted on 2:03 AM, under

#include "conio.h"
#include "stdio.h"

void main()
{
int j, totalj=0

clrscr();
for(j=1 ;j<=5 ;j++){
totalj+= j;
}
cout << "\n Jumlah=%d",totalj;
}

dengan output
15= 5 + 4 + 3 + 2 + 1

edit post

0 Reply to "Quis Online Soal I (Pertama)"

  • Post a Comment