#include
#include
int main()
{
int x,y,z,bil;
clrscr();
cout<<"Masukkan Tinggi Segitiga : "; cin>>bil;
cout<<"\n\n"; for(x=1; x<=bil; x++) { for(z=bil; z>=x; z--)
cout<<" "; for(z=x;z<2*x;z++) y="z%10;" z="2*(x-1);z">=x; z--)
{
y = z%10;
cout<
}
cout<<"\n";
}
getch();
}
No comments:
Post a Comment