I AM UNABLE TO GET ANY OUTPUT ON THIS C PROGRAM.
BRAINLIEST WILL BE MARKED
ONLY ANSWER IF YOU KNOW
#include
int main()
{
int num = 1,a,b,c,d,e;
while(num<=500);
{
a = num/10;
b = num%10;
c = a/10;
d = a%10;
e = b%10;
if (num == (b*b*b) + (d*d*d) + (e*e*e))
printf("%d",num);
} num+=1;
return 0;
}
Answers
Answered by
1
Answer:
Rewrite the code
#include <stdio.h>
int main()
{
int num = 1,a,b,c,d,e;
while(num<=500);
{
a = num/10;
b = num%10;
c = a/10;
d = a%10;
e = b%10;
if (num == (b*b*b) + (d*d*d) + (e*e*e))
printf("%d",num);
num++ ;
}
return 0;
}
** I hope it will solve your problems.
Similar questions