<\/span><\/h2>\n\n\n\nThis challenge requires you to print “Hello, World!”<\/strong> on a single line, and then print the already provided input string to stdout. If you are not familiar with C, you may want to read about the printf() command.<\/p>\n\n\n\n<\/span>Example<\/strong> <\/span><\/h2>\n\n\n\ns=”<\/em>Life is beautiful“<\/em><\/strong><\/p>\n\n\n\nThe required output is:<\/p>\n\n\n\n
Hello, World! <\/p>\n\n\n\n
Life is beautiful<\/p>\n\n\n\n
<\/span>Function Description<\/strong><\/span><\/h2>\n\n\n\nComplete the main() function below.<\/p>\n\n\n\n
The main() function has the following input:<\/p>\n\n\n\n
string s: a string<\/p>\n\n\n\n
<\/span>Prints <\/strong><\/span><\/h2>\n\n\n\n*two strings: * “Hello, World!” on one line and the input string on the next line.<\/p>\n\n\n\n
<\/span>Input Format <\/strong><\/span><\/h2>\n\n\n\nThere is one line of text,s<\/em><\/strong>.<\/p>\n\n\n\nSample Input 0<\/strong><\/p>\n\n\n\nWelcome to C programming.<\/code><\/pre>\n\n\n\nSample Output 0<\/strong><\/p>\n\n\n\nHello, World!\n\nWelcome to C programming.<\/code><\/pre>\n\n\n\n<\/span>Solution – Hello World in C Hackerrank Solution <\/strong><\/span><\/h2>\n\n\n\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n\nint main() \n\n{\n\n char s[100];\n scanf(\"%[^\\n]%*c\", &s);\n \/* Enter your code here. Read input from STDIN. Print output to STDOUT *\/ \n printf(\"Hello, World!\\n%s\",s);\n return 0;\n}<\/pre>\n\n\n\n