Playing With Characters | HackerRankTeam ATCSep 16, 20201 min readUpdated: Sep 17, 2020Asked: 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; }
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; }
Small Triangles Large Triangles - HackerRank Solution in C | AskTheCodeYou are given n triangles, specifically their sides ai, bi & ci. Print them in the same style but sorted by their areas from the smallest...
David is fighting Goliath (again) - MOOC assignment from Edx solutionWrite a program that takes several lines of input from a user (see the below example). The first line of the input indicates the number ...
Comentários