這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
#include <stdlib.h>#include <stdio.h>#include <string.h>int main(){ char word[80]; gets(word); for(int i=7;i>=0;i--) { word[i]='\0'; puts(word); } system("Pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; puts("輸入字串:"); gets(word); int n=strlen(word); for (n=80;n>=1;n--){ word[n]='\0'; puts(word); } system("Pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; puts("輸入字串:"); gets(word); int n=strlen(word); for (n;n>=1;n--){ word[n]='\0'; puts(word); } system("Pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h> int main(){ char a[80]; int n; puts ("請輸入字串:"); gets (a); n=strlen(a); for(int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; int n; puts("請輸入字串:"); gets(a); n=strlen(a); for (int i=n;i>=0;i--) { a[i]='\0'; puts(a); } system("pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; int n; puts("輸入數值:"); gets(word); n=strlen(word); for (int i=n;i>=1;i--) { word[i]='\0'; puts(word); } system("pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; puts ("請輸入字串:"); gets(a); int n; n=strlen(a); for(int i=n;i>=1;i--){ a[i]='\0'; puts(a); } // gets(word); //int n=strlen(word) ; //printf("%d\n",n); //word[5]='\0'; system("pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main (){ char a[80]; int n; puts("請輸入字串"); gets(a); n=strlen(a); for (int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0; }
#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char a[80]; int n; puts("請輸入字串"); gets(a); n=strlen(a); for(int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; int n; puts("請輸入字串:"); gets(a); n=strlen(a); for(int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0; }
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; puts("輸入字串:"); gets(word); int n=strlen(word); for (n;n>=1;n--) { word[n]='\0'; puts(word); } system("Pause"); return 0;}
#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char a[80]; puts ("請輸入字串:"); gets (a); int n; n=strlen (a); for(int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0; }
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; int n; puts("請輸入字串:"); gets (a); n=strlen(a); for (int i=n;i>=0;i--) { a[i]='\0'; puts (a); } system("pause"); return 0;}
#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char word[80]; gets(word); int n=strlen(word); for(int i=n;i>=1;i--){ word[i]='\0'; puts(word);} system("pause");return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; int n; puts("請輸入字串"); gets (a); n=strlen(a); for (int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0; }
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; int n; puts ("請輸入文字:"); gets (a); n=strlen (a); for(int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; int n; puts("請輸入字串"); gets (a); n=strlen(a); for (int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; puts("輸入數字:"); gets(word); int i=strlen(word); for(int n=i;n>=0;n--) { word[n-1]='\0'; puts(word); } system("Pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h> int main(){ char a[80]; int n; puts("輸入字串:"); gets(a); n=strlen(a); for(int i=n;i>=2;i--) { a[i-1]='\0'; puts(a); } system("Pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; int n; puts("輸入數字:"); gets(word); n=strlen(word); for (int i=n;i>=1;i--) { word[i]='\0'; puts(word); } system("Pause"); return 0;}
#include <stdio.h>#include <stdlib.h>#include <string.h> int main(){ char word[80]; puts("輸入字元"); gets(word); int i=strlen(word); for(i;i>=0;i--) { word[i]='\0'; puts(word); } system("pause"); return 0; }
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[80]; puts ("輸入數字:"); gets (a); int n; n=strlen (a); int i; for(int i=n;i>=1;i--) { a[i]='\0'; puts(a); } system("Pause"); return 0;}
<P>#include <stdio.h><BR>#include <stdlib.h><BR>#include <string.h><BR>int main(){<BR> char a[80];<BR> int n;<BR> puts("輸入數字:");<BR> gets(a);<BR> n=strlen(a);<BR> <BR> for (int i=n;i>=1;i--)<BR> {<BR> <BR> a[i-1]='\0';<BR> puts(a);<BR> <BR>}<BR> system("Pause");<BR> return 0;<BR>}<BR></P>
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; gets(word); int n=strlen(word); for (int i=n;i>=0;i--) { word[i]='\0'; puts(word); } system("Pause"); return 0;}You are ringt!You are ringt!You are ringtYou are ringYou are rinYou are riYou are rYou areYou areYou arYou aYouYouYoY請按任意鍵繼續 . . .
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char word[80]; gets(word); int n=strlen(word); for (int i=n;i>=0;i--) { word[i]='\0'; puts(word); } system("Pause"); return 0;}You win!You win!You winYou wiYou wYouYouYoY請按任意鍵繼續 . . .
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char word[80];puts("輸入字串:");gets(word);int n=strlen(word); for (n;n>=1;n--){ word[n]='\0';puts(word);} system("Pause");return 0;}
HTML 編輯器
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n=80;n>=1;n--){
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n;n>=1;n--){
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts ("請輸入字串:");
gets (a);
n=strlen(a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets(a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char word[80];
int n;
puts("輸入數值:");
gets(word);
n=strlen(word);
for (int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
puts ("請輸入字串:");
gets(a);
int n;
n=strlen(a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
// gets(word);
//int n=strlen(word) ;
//printf("%d\n",n);
//word[5]='\0';
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main ()
{
char a[80];
int n;
puts("請輸入字串");
gets(a);
n=strlen(a);
for (int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串");
gets(a);
n=strlen(a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets(a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets(a);
n=strlen(a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n;n>=1;n--)
{
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets(a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main()
{
char a[80];
puts ("請輸入字串:");
gets (a);
int n;
n=strlen (a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets(a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets (a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts (a);
}
system("pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for(int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串");
gets (a);
n=strlen(a);
for (int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for(int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for(int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts ("請輸入文字:");
gets (a);
n=strlen (a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for(int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts ("請輸入文字:");
gets (a);
n=strlen (a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for(int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串");
gets (a);
n=strlen(a);
for (int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for(int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts ("請輸入文字:");
gets (a);
n=strlen (a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n=80;n>=1;n--){
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts ("請輸入文字:");
gets (a);
n=strlen (a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n=80;n>=1;n--){
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串");
gets (a);
n=strlen(a);
for (int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n=80;n>=1;n--){
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets (a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts (a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串");
gets (a);
n=strlen(a);
for (int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include<stdio.h>
回覆刪除#include<stdlib.h>
#include<string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for(int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts ("請輸入文字:");
gets (a);
n=strlen (a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets (a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts (a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串");
gets (a);
n=strlen(a);
for (int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets (a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts (a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts ("請輸入文字:");
gets (a);
n=strlen (a);
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入數字:");
gets(word);
int i=strlen(word);
for(int n=i;n>=0;n--)
{
word[n-1]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入數字:");
gets(word);
int i=strlen(word);
for(int n=i;n>=0;n--)
{
word[n-1]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char a[80];
int n;
puts("輸入字串:");
gets(a);
n=strlen(a);
for(int i=n;i>=2;i--)
{
a[i-1]='\0';
puts(a);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets (a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts (a);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char word[80];
int n;
puts("輸入數字:");
gets(word);
n=strlen(word);
for (int i=n;i>=1;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char a[80];
int n;
puts("輸入字串:");
gets(a);
n=strlen(a);
for(int i=n;i>=2;i--)
{
a[i-1]='\0';
puts(a);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char word[80];
puts("輸入字元");
gets(word);
int i=strlen(word);
for(i;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n;n>=1;n--){
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char a[80];
puts ("輸入數字:");
gets (a);
int n;
n=strlen (a);
int i;
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char a[80];
puts ("輸入數字:");
gets (a);
int n;
n=strlen (a);
int i;
for(int i=n;i>=1;i--)
{
a[i]='\0';
puts(a);
}
system("Pause");
return 0;
}
<P>#include <stdio.h><BR>#include <stdlib.h><BR>#include <string.h><BR>int main(){<BR> char a[80];<BR> int n;<BR> puts("輸入數字:");<BR> gets(a);<BR> n=strlen(a);<BR> <BR> for (int i=n;i>=1;i--)<BR> {<BR> <BR> a[i-1]='\0';<BR> puts(a);<BR> <BR>}<BR> system("Pause");<BR> return 0;<BR>}<BR></P>
回覆刪除<P>#include <stdio.h><BR>#include <stdlib.h><BR>#include <string.h><BR>int main(){<BR> char a[80];<BR> int n;<BR> puts("輸入數字:");<BR> gets(a);<BR> n=strlen(a);<BR> <BR> for (int i=n;i>=1;i--)<BR> {<BR> <BR> a[i-1]='\0';<BR> puts(a);<BR> <BR>}<BR> system("Pause");<BR> return 0;<BR>}<BR></P>
回覆刪除<P>#include <stdio.h><BR>#include <stdlib.h><BR>#include <string.h><BR>int main(){<BR> char a[80];<BR> int n;<BR> puts("輸入數字:");<BR> gets(a);<BR> n=strlen(a);<BR> <BR> for (int i=n;i>=1;i--)<BR> {<BR> <BR> a[i-1]='\0';<BR> puts(a);<BR> <BR>}<BR> system("Pause");<BR> return 0;<BR>}<BR></P>
回覆刪除#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for (int i=n;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
You are ringt!
You are ringt!
You are ringt
You are ring
You are rin
You are ri
You are r
You are
You are
You ar
You a
You
You
Yo
Y
請按任意鍵繼續 . . .
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
gets(word);
int n=strlen(word);
for (int i=n;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
You win!
You win!
You win
You wi
You w
You
You
Yo
Y
請按任意鍵繼續 . . .
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets(a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main(){
char word[80];
puts("輸入字串:");
gets(word);
int n=strlen(word);
for (n;n>=1;n--){
word[n]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdlib.h>
回覆刪除#include <stdio.h>
#include <string.h>
int main()
{
char word[80];
gets(word);
for(int i=7;i>=0;i--)
{
word[i]='\0';
puts(word);
}
system("Pause");
return 0;
}
#include <stdio.h>
回覆刪除#include <stdlib.h>
#include <string.h>
int main()
{
char a[80];
int n;
puts("請輸入字串:");
gets(a);
n=strlen(a);
for (int i=n;i>=0;i--)
{
a[i]='\0';
puts(a);
}
system("pause");
return 0;
}