Answer:
#include
using namespace std;
Int main ()
{char a, b, c, d;
Int f;
Cin> f;
D=f % 100;
C=100% f/100;
B=f/100 10000%;
A=f/100 1000000%;
Cout
}
My method is more troublesome, but can still use it
CodePudding user response:
Your approach can, is slightly clumsy, can use a loop to doOr you can save the input integer into a character array
For example,
Char buf [9].
Sprintf (buf, "% d" 08, f);
Then two traverse character array calculate can
CodePudding user response:
Of new one didn't read theCodePudding user response:
Learn a period of time I come back againCodePudding user response:
thank you for your bossesCodePudding user response: