SHARE
TWEET

asd

a guest Oct 23rd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int num;
  7.     scanf("%d" , &num);
  8.     int i=0;
  9.  
  10.     while(1)
  11.     {
  12.         if(i==num)
  13.             break;
  14.  
  15.         i++;
  16.  
  17.  
  18.         for(int j=0;j<i;j++)
  19.         {
  20.  
  21.           printf("%d", i);
  22.  
  23.         }
  24.         printf("\n");
  25.  
  26.     }
  27.  
  28.  
  29.  
  30.  
  31.  
  32.     return 0;
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top