Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - It is known that the variable I is an integer variable, and the program in c++ is solved by flipping the lower four bits of I.
It is known that the variable I is an integer variable, and the program in c++ is solved by flipping the lower four bits of I.
I have tested it, and it is correct if I understand the meaning correctly! ! !

# include & ltiostream & gt

Use namespace std

int main()

{

Int a = 0, b = 0, c = 0, remainder = 0;

Cout & lt& lt "Enter a number:";

CIN & gt; & gta;

b = a/ 10000;

c = a % 10000;

Cout & lt& lt "number is:";

If (b! = 0)

cout & lt& ltb;

while(c & gt; 0)

{

Remainder = c%10;

Cout & lt& lt remainder;

c = c/ 10;

}

System ("suspended");

Returns 0;

}