Hello World in Hacker Rank in C Language 30 Days of Code Solution With Explanation

preview_player
Показать описание
Hello World in Hacker Rank in C Language 30 Days of Code Solution With Explanation It is Day 0
Solution is
int main() {
// Declare a variable named 'input_string' to hold our input.
char raju[999];

// Read a full line of input from stdin and save it to our variable, input_string.
scanf("%[^\n]",raju);

// Print a string literal saying "Hello, World." to stdout using printf.
printf("Hello, World.\n""%s",raju);

// TODO: Write a line of code here that prints the contents of input_string to stdout.

return 0;
}
Рекомендации по теме
Комментарии
Автор

Super bro, very usefull to learn hello world problem

vamsij
Автор

In the last line of the code why you have written "\n""%s"

lightning_sree