Advertisement
BlackBoY_

Punya Temen Asiah

Jan 17th, 2023 (edited)
1,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main(){
  4.     int n;
  5.     printf("==== EZ ====");
  6.     printf("\n");
  7.     printf("Masukkan nilai n = ");scanf("%d",&n);
  8.  
  9.     for(int i = 1;i<=n;i++){
  10.         for(int j=i;j<n;j++){
  11.             printf(" ");
  12.         }
  13.         for(int k=1;k<=i;k++){
  14.             printf("*");
  15.         }
  16.         printf("\n");
  17.     }
  18.  
  19.     printf("== PROJECT END! == \n");
  20.     printf("=== KEREN KAN? === \n");
  21.     printf("===== SIVONN ===== \n");
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement