Home > Back-end >  Where is wrong
Where is wrong

Time:09-27

75 what no output behind

CodePudding user response:

When I rise to 60, ABC is not for 5, the program exits, the else should be revised

CodePudding user response:

# include & lt; iostream>

using namespace std;

Int main ()
{
Int m, n, I, x;
Bool p=0;
Cin> M> n;
For (I=min (m, n); i <=Max (m, n); I++)
{
If (I % 3==0)
{
While (I!=0)
{
X=I % 10;
I=I/10;
If (x==5)
{
P=1;
break;
}
}
If (p==1) cout}
}
return 0;
}
Try to write
  • Related