HackerRank C- "Hello World!"
This challenge requires you to print "Hello World!" on a single line, and then print the already provided input string to stdout.
Note: You do not need to read any input in this challenge.
- #include <stdio.h>
- #include <string.h>
- #include <math.h>
- #include <stdlib.h>
-
- int main()
- {
-
- char s[100];
- scanf("%[^\n]%*c", &s);
- printf("Hello, World!\n%s", s);
-
- /* Enter your code here. Read input from STDIN. Print output to STDOUT */
- return 0;
- }