xachetbay

In hình tháp từ 1 đến 9

Mar 13th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.    
  5.     for(int i = 1; i <= 9; i++){
  6.        
  7.         for (int j = 1; j<=i; j++){
  8.            
  9.             printf("%d ",j);
  10.         }
  11.         printf("\n");
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment