Advertisement
Guest User

Untitled

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