this is the program to get what is in each decimal bit of five digits, and can the parts of ten digits, hundred digits and thousands of digits be rewritten into a loop structure?
/-sharpinclude < stdio.h >
int main (void)
{
int x = 0;
short x0 direction x1scorex2Lecture x3Powerx4;
printf ("\ n Please enter a 5-digit integer:");
scanf ("% d", & x);
x0roomx% 10;
x1mmx% 100max 10;
x2roomx% 1000max 100;
x3roomx% 10000max 1000;
x4roomx 10000;
printf ("\ nbits =% d\ nTen digits =% d\ n100 digits =% d\ n1000 bits =% d\ n\ n", x0Personx1Personx2Personx3Personx4);
return 0;
}