Program should be get 6 letter from user and then letter print them
this i have written
program outputCode:#include <stdio.h> int main() { char letter[5]; int i; printf("Enter the Name of letter \n"); for (i = 0; i < 5; i++) { scanf("%c \n",&letter); } for (i = 0; i < 5; i++) { printf("%c \n", letter[i]); } return 0; }
Enter the Name of letter
a
b
c
d
e
f
e
≡
%
why code doesn't print the entered letter ?