C Program to Print “Hello world” 10 Times using While loop

C Program to Print “Hello world” 10 Times using While loop

Write C Program to Print “Hello world” 10 Times using the While loop

//Write a C program to print Hello World 10 timed using while loop

#include <stdio.h>

int main()
{
	int i = 0;

	while(i < 10)
	{
		printf("Hello World\n");

		i++;
	}

	return 0;
}

Output:

Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World