したがって、私のコードは単語を読み取り、それをユーザーのバックワードに表示します。これは私が持っているものです:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int i;
char word[10];
printf("Enter a six letter word: ");
for(i=0; i<6; i++){
scanf("%c", &word[i]);
}
for (i=5; i>=0; i--){
printf("%c", word[i]);
}
return 0;
}
scanf と printf を使用する代わりに、getchar と putchar を使用するにはどうすればよいですか?