发布网友
共1个回答
热心网友
#include <stdio.h>
int main(int argc, char **argv)
{
char num[];
scanf("%s",num);
int length=0;
while(num[length]!='\0')
length++;
printf("5498是倒序各位数字是:");
int counter=length-1;
while(counter>=0)
printf("%c,",num[counter--]);
printf("其是%d位数。",length);
return 0;
}
热心网友
#include <stdio.h>
int main(int argc, char **argv)
{
char num[];
scanf("%s",num);
int length=0;
while(num[length]!='\0')
length++;
printf("5498是倒序各位数字是:");
int counter=length-1;
while(counter>=0)
printf("%c,",num[counter--]);
printf("其是%d位数。",length);
return 0;
}
热心网友
#include <stdio.h>
int main(int argc, char **argv)
{
char num[];
scanf("%s",num);
int length=0;
while(num[length]!='\0')
length++;
printf("5498是倒序各位数字是:");
int counter=length-1;
while(counter>=0)
printf("%c,",num[counter--]);
printf("其是%d位数。",length);
return 0;
}
热心网友
#include <stdio.h>
int main(int argc, char **argv)
{
char num[];
scanf("%s",num);
int length=0;
while(num[length]!='\0')
length++;
printf("5498是倒序各位数字是:");
int counter=length-1;
while(counter>=0)
printf("%c,",num[counter--]);
printf("其是%d位数。",length);
return 0;
}