#include <stdio.h>
int main()
{
char ch;
scanf("%c",&ch);
char s[100];
gets(s);
char sen[120];
gets(sen);
printf("%c",ch);
puts(s);
puts(sen);
}
This is my program to print a character, word, and sentence. But it doesn't take the sentence input and print while I give the word input and gives the output.