Computer Science, asked by Newbieworld, 10 months ago

write an algorithm for writing hello world 10 times​

Answers

Answered by noobmasterisonline
7

Answer:

Explanation:

FOR C++:

You can use loop. For example;

int num=0;

while(num<10){

   cout<<"Hello World \n";

   num++;

FOR PYTHON:

for i in range(10):

print("Hello World")

# in a C like language

for (int i = 0; i < 10; i++)

{

printf("Hello World\n");

}

IN JAVA:

for (int i = 0; i < 10; i++) {

  System.out.println("Hello World");

}

Similar questions