In this HackerRank "Hello World!" in C problem solution we need to requires to print Hello, World! in c programming on a single line.
HackerRank "Hello World!" in C problem solution
#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");
printf("%s", s);
return 0;
}
0 Comments