用字串:
#include #include
int main (){
char s[80]=“123。567”;
int i,L;
// gets(s); // 可以用 gets 輸入123。567
L=strlen(s);
for (i=L-1;i>=0;i——) printf(“%c”,s[i]);
return 0;
}