This program will receive a sentence and reverse it as the result. 字串反轉
Example input 1:
School need Student
Example output 1:
Student need School
Example input 2:
Student
Example output 2:
Example input 3:
are you as bored as I am
Example output 3:
am I as bored as you are
Hidden content!#include<stdio.h>#include<string.h>int main(){ int i,j,k,end; //end 要解決最後多出\0的問題 char a[100]; scanf("%[^\n]%*c",a); j=strlen(a); end=j-1; for(i=j-1;i>=0;i--) {**** * *** * * ** * * * * * * *** * * *** * * ***** * * ** * **** ** ')