Advertisement
apl-mhd

FloydTringle

Sep 4th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. //FloydsTringle
  6.  
  7. int main()
  8. {
  9.  
  10.     int row, i,j, number = 0;
  11.     scanf("%d",&row);
  12.  
  13.     for(i = 1; i <= row; i++){
  14.  
  15.         for( j = 1; j <= i; j++  ){
  16.                 number++;
  17.             printf("%d ", number);
  18.  
  19.         }
  20.  
  21.         printf("\n");
  22.  
  23.     }
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement