You are viewing a single comment's thread. Return to all comments →
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { char ch; char s[24]; char t[100]; scanf("%c", &ch); scanf("%s", s); getchar(); scanf("%[^\n]%*c", t); printf("%c\n", ch); printf("%s\n", s); printf("%s\n", t); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Playing With Characters
You are viewing a single comment's thread. Return to all comments →