HackerRank C- Playing With Characters
You have to print the character, ch , in the first line. Then print s in next line. In the last line print the sentence, sen .
- char ch;
- scanf("%c",&ch);
- char s[20];
- scanf("%s",s);
- char t;
- scanf("%c",&t);
- char sen[100];
- scanf("%[^\n]",sen);
- printf("%c\n",ch);
- printf("%s\n",s);
- printf("%s\n",sen);
- return 0;