For Bersarang Unknown 5:12 AM bahasa c No comments #include<iostream.h> #include<conio.h> void main() { clrscr(); int tinggi, baris, kolom; cout<<"tinggi segitiga = "; cin>>tinggi; cout<<endl; for(baris=1;baris<=tinggi;baris++) { for(kolom=1;kolom<=baris;kolom++) cout<<"*"; cout<<endl; } getch(); } Hasilnya : Share This: Facebook Twitter Google+ Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment