Informasi Teknologi, Tutorial Blog Dan Pemrograman

Simple Looping Program

Simple Looping Program

Perulangan For

#include
#include
#include
void main()
{
int a;
for (a=1; a<=10; ++a)
cout<
getch();
}


Perulangan while-



#include
#include
#include

void main(){
int bil 1;
while(bil<=10)
{
cout<<<"";
++bil;
}
getch();
}


Perulangan do while


#include
#include
#include

void main() {
int bil=2;
do {
cout<<<"";
bil+=2;
}
while(bil<=10);
}
getch();
}



Posted by Unknown, Published at 09.52 and have 0 comments