I have declared 3 variables. here ch for store one character and s for store a single word and sen for a sentence or multiple words! But, when i run the code it is not giving the opportunity to give an input for sen variable.
I have tried to figure out the problem. but I failed! What's wrong with my code. can anyone help me please...
Here is my code...
#include<stdio.h>
int main()
{
char ch, s[20], sen[100];
scanf("%c%s",&ch,&s);
gets(sen);
printf("%c\n%s\n%s", ch, s, sen);
return 0;
}