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(){ char string[1000],reverse[1000]; int index=0,len,wordstart,wordend,i; fgets(string,1000,stdin); len = strlen(string); wordstart=len-1; wordend=len-1; while(wordstart>0) {