Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int a,b,c,d,e,f,g,h,i,j;
- int main ()
- {
- for (a=10;a<100;a++)
- {
- h=0;
- b=a/10;
- c=a%10;
- d=b+c;
- for (e=2;e<10;e++)
- {
- f-a*e;
- if (f>99)
- {
- b=f/10;
- j=b/10;
- c=f%10;
- i=f/100;
- g=j+c+i;
- }
- else
- {
- b=f/10;
- c=f%10;
- g=b+c;
- }
- if (g!=d)
- {
- h=1;
- }
- }
- if (h==0)
- {
- printf ("%d",a);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement