Guest User

Untitled

a guest
May 17th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5. int a=0, b=0, c=0;
  6. while (a<10)
  7. {
  8.     c++;
  9.     if (c>9){
  10.         c=0;
  11.         b++;}
  12.     if (b>9){
  13.         b=0;
  14.         a++;}
  15.     if ((a==c) && (a>0))
  16.     printf("%d%d%d\n",a,b,c);
  17.  
  18. }}
Add Comment
Please, Sign In to add comment