fork download
  1. #include <stdio.h>
  2. int a,b,c,d,e,f,g,h,i,j;
  3. int main ()
  4. {
  5. for (a=10;a<100;a++)
  6. {
  7. h=0;
  8. b=a/10;
  9. c=a%10;
  10. d=b+c;
  11. for (e=2;e<10;e++)
  12. {
  13. f=a*e;
  14. if (f>99)
  15. {
  16. j=f/100;
  17. c=(f/10)%10;
  18. i=f%10;
  19. g=j+c+i;
  20. }
  21. else
  22. {
  23. b=f/10;
  24. c=f%10;
  25. g=b+c;
  26. }
  27. if (g!=d)
  28. {
  29. h=1;
  30. break;
  31. }
  32. }
  33. if (h==0)
  34. {
  35. printf ("%d\n",a);
  36. }
  37. }
  38. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
18
45
90
99