Write a program to print "Hello World" 5 times each on new line using escape sequences. c language programming
Answers
Answered by
7
"Hello World" in C Programming Language
Output:
Hello World
Hello World
Hello World
Hello World
Hello World
Explanation:
//define header file
#include <stdio.h>
//define main method
int main(void) {
//set for loop
for(int i=0; i<=4;i++)
{
//print the message
printf("Hello World\n");
}
return 0;
}
The following are the description of the program.
- Firstly, we define the required header file and define the main() method.
- Then, declare the integer data type variable and initialize to 0 inside the for loop statement, that starts from 0 and end at 4 then, print the following message that is 'Hello World'
Learn More:
https://brainly.in/question/10688617
Similar questions