Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- #include<iostream>
- using namespace std;
- int main()
- {
- int i, j, k;
- cout<<"Masukkan Jumlah Baris: ";
- cin>>k;
- for(i=0; i<k; i++)
- {
- for(j=0; j<=i; j++)
- {
- printf("* ");
- }
- printf("\n");
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment