Contoh
program for :
#include<iostream.h>
#include<conio.h>
main()
{
int
x,y,n;
cout<<"
Masukan Angka Batas : ";
cin>>n;
for(x=1;
x<=n; x++)
{
for(y=1;y<=x;y++)
cout<<"> "<<y;
cout<<"\n";
}
getch();
}
No comments:
Post a Comment