Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main(){
- for (int i = 100; 1 < 1000; i++){
- float ipow3 = pow(i / 100, 3) + pow(i % 100, 3) + pow(i % 10,3);
- if (fabs(ipow3-i)< 0.00000001)
- printf("%d ",i);
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement