//输出一个整数的每一位。
#include<stdio.h>
#include<stdlib.h>
void LYJ(int x)
{
int n = x % 10;
while (x != 0)
{
n = x % 10;
x = x / 10;
printf("%d", n);
}
}
int main()
{
int m = 2048;
LYJ(m);
system("pause");
return 0;
}
//输出一个整数的每一位。
#include<stdio.h>
#include<stdlib.h>
void LYJ(int x)
{
int n = x % 10;
while (x != 0)
{
n = x % 10;
x = x / 10;
printf("%d", n);
}
}
int main()
{
int m = 2048;
LYJ(m);
system("pause");
return 0;
}