Int main ()
{
Int a, b, c, d;
For (a=100; a<1000; +)
{c=a/100; B=(a - c * 100)/10;
D=a % 100; If (a==b * b * b + c * * d * * c + d c d)
Printf (" % d ", a);
} return 0;
}
CodePudding user response:
D=a % 100This is a digit? Should die?
CodePudding user response:
# include "stdio.h"
Int main ()
{
Int a, b, c, d;
For (a=100; a<1000; +)
{
B=a % 10;//bits
C=a/10% 10;//10
D=a/100% 10;//one hundred
/*
C=a/100;
//b=(a - c * 100)/10;
B=(a/10) % 10;
D=a % 100;
//printf (" a=% d, b=% d, c=% d \ n ", a, b, c);
*/
If (a==b * b * b + c * * d * * c + d c d)
Printf (" % d \ t ", a);
}
Putchar (10);
return 0;
}
For your reference ~
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html