xachetbay

In hình tháp ngược

Mar 13th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i,j;
  5.     j = 0;
  6.    
  7.     while(i<8){
  8.         j = 0;
  9.        
  10.         while (j <8){
  11.            
  12.             if (i<=j){
  13.             printf("#");
  14.             } else {
  15.             printf(" ");
  16.             }
  17.             j++;
  18.         }
  19.     printf("\n");
  20.     i++;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment