Minggu, 24 April 2011

Program Perulangan (For, While & Do..While)

balajar perulangan...

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

 
Copyright (c) 2010 Algoritma dan Pemrograman. Design by WPThemes Expert

Themes By Buy My Themes And Web Hosting Reviews.