You are on page 1of 2

#include<iostream.h> #include<conio.h> main() { int x; for(x=10;x>=1;x--) cout<<x<<" "; getch(); } +++++++++++++++++++++++++++++++++++++++++++++ #include<iostream.h> #include<conio.

h> main() { int a,b; for(a=1;a<=4;x++) {for(b=1;b<=4;b++) cout<<"*"; cout<<endl; } getch(); } +++++++++++++++++++++++++++++++++++++++++++++ #include<iostream.h> #include<conio.h> main() { int x; x=0 while (x<=5) { cout<<"*"<<endl; x++; } getch(); } +++++++++++++++++++++++++++++++++++++++++++++ #include<iostream.h> #include<conio.h> main() { int a,b,c,ZZ; a=8; b=5; ZZ(b>=1); {ZZ=a-b; cout<<a<<"-"<<b<<"="<<ZZ<<endl; b--; b getch(); } ++++++++++++++++++++++++++++++++++ bintang kotak #include<iostream.h> #include<conio.h> main()

{ int a,b; for(a=1;a<=4;a++) { for(b=1;b<=5;b++) cout<<"*"; cout<<endl; } getch(); } ++++++++++++++++++++++++++++++++++ kecil besar #include<iostream.h> #include<conio.h> main() { int a,b,n; cout<<"masukkan jumlah n :";cin>>n; for (a=1;a<=n;a++) { for(b=1;b<=a;b++) { cout<<"*"; } cout<<" "<<endl; } getch(); } +++++++++++++++++++++++++++++++++++ besar kecil #include<iostream.h> #include<conio.h> main() { int a,b,n; cout<<"masukkan jumlah n :";cin>>n; for (a=1;a<=n;a++) { for(b=n;b>=a;b--) cout<<"*"; cout<<endl; } getch(); } ++++++++++++++++++++++++++++++++++++

You might also like