algoritmanya
{Program Perulangan (For, While & Do..While)}
deklarsi : char a=10 , char b=10
deskripsi :
for <- integer i, i
#include
int main()
{
int jumlah;
cout << "Masukan Jumlah Perulangan :"; cin >>jumlah;
for (int i=0; i
cout < cout << endl;
}
cout << endl;
int n=0;
while (n
cout << "Halo Perulngan Dengan While";
cout << endl;
n++;
}
cout << endl;
int m=0;
do
{
cout << "Halo Perulangan Dengan Do & While";
cout << endl;
m++;
}
while(m
getch();
}
0 komentar:
Posting Komentar