fork download
  1. #include <stdio.h>
  2.  
  3. #include <math.h>
  4. int main()
  5. {
  6.  
  7. int a,b,c;
  8. for (a=1;a<=9;a++)
  9. for(b=0;b<=9;b++)
  10. for(c=0;c<=9;c++)
  11. {
  12. if(pow(a,3)+pow(b,3)+pow(c,3)==100*a+10*b+c)
  13. printf("\n%d%d%d",a,b,c);
  14. }
  15.  
  16. }
Runtime error #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
153
370
371
407