write an algorithm for writing hello world 10 times
Answers
Answered by
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
Math,
5 months ago
English,
5 months ago
Political Science,
10 months ago
History,
10 months ago
Social Sciences,
1 year ago