top of page
Click here to go to the home page of AskTheCode.

Playing With Characters | HackerRank

Team ATC

Updated: Sep 17, 2020

Asked: Anonymously | Category: C



 

#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { char ch; char s[20], sen[100]; scanf("%c", &ch); scanf("%s", s); scanf("\n"); scanf("%[^\n]%*c", sen); printf("%c\n", ch); printf("%s\n", s); printf("%s\n", sen); return 0; }

Recent Posts

See All

Comentários


bottom of page