Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contoh program:
- #include <stdio.h>
- int main(){
- int n;
- scanf("%d", &n);
- //siku-siku kiri bawah
- for(int i=0; i<n; i++){
- for(int j=0; j<=i; j++){
- printf("*");
- }
- printf("\n");
- }
- }
- buatlah pola berdasarkan input
- input = 4
- *
- **
- ***
- ****
- ****
- ***
- **
- *
- *
- **
- ***
- ****
- ****
- ***
- **
- *
- *
- ***
- *****
- *******
- *******
- *****
- ***
- *
- *
- ***
- *****
- *******
- *****
- ***
- *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement