// program membentuk segitiga
# include <iostream.h>
void main()
{
int tinggi,
baris,
kolom;
cout<<"tinggi segitiga : ";
cin>>tinggi;
cout<<endl;
{
for(kolom = 1; kolom <= baris; kolom++)
cout<<'*';
cout<<endl;
}
}
output
*****************
***************
*************
***********
*********
*******
*****
***
*
Friday, 13 January 2012
CPP
0 Response to "contoh 29"
Post a Comment