#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 09.52 and have
0
comments
, Published at