Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  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. b=f/10;
  17. j=b/10;
  18. c=f%10;
  19. i=f/100;
  20. g=j+c+i;
  21. }
  22. else
  23. {
  24. b=f/10;
  25. c=f%10;
  26. g=b+c;
  27. }
  28. if (g!=d)
  29. {
  30. h=1;
  31. }
  32. }
  33. if (h==0)
  34. {
  35. printf ("%d",a);
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement