0
int sum,temp,x,r,count=0; for(x=100;x<=200;x++) { temp=x; sum=0; while(x>0) { r=x%10; sum=sum+(r*r*r); x
I cant found error
5 Respostas
+ 4
Your code should be something like this:
https://code.sololearn.com/cWG4a21pm22d/#c
Next time please follow the guidelines:
https://www.sololearn.com/post/75089/?ref=app
Now can you please tell me what the code should do?
You are getting two warning as you are not using the variable temp and count.
+ 2
Yes share the full code please.
Anyway it seems like you enter an infinite loop with the while
+ 2
BEGGINER unless inside the while there is some instruction setting x to a value less than 1, it is an infinite loop