I wrote the following C program which gets a sentence as input and print it back as output:
#inlcude<stdio.h>
int main()
{
char string[30];
scanf("%s ",string);
printf("\n %s ",string);
return 0;
}
Sample Input:
India is Best
Output got:
India
Why cant i get the whole sentence?