Home > Back-end >  Has triggered a breakpoint problem how to solve
Has triggered a breakpoint problem how to solve

Time:03-29

#include
#include
# define true 1
# define false 0
Int InvertSequence (int m)
{
Int c, d, e=0;
If (m & gt; 0 & amp; & M & lt; 10)
Printf (" % d ", m);
Else if (m & gt;=10 & amp; & M & lt;
=99){
C=m/10;
D=m - 10 * c;
Printf (" % d % d ", d, c);
}
Else if (m & gt;=100 & amp; & M & lt; 1000)
{
C=m/100;
D=(m - 100 * c)/10;
E=c - m - 100 * 10 * d;
Printf (" % d % d % d ", e, d, c);
}
}
Int loop (int x)
{
If (x==InvertSequence (x))
return true;
The else
return false;
}
Int main ()
{
Int a=0;
int i=0;
Int b=0;
Int p, q=0;
The scanf (" % d % d ", a, b);
For (I=a; I & lt;=b; I++)
{
P=InvertSequence (I);
Q=loop (p);
If (q==true)
{
Printf (" % d \ n ", p);
}
}
system("pause");
}

CodePudding user response:

Int InvertSequence (int m) not return a value
  • Related