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,
6 months ago
Physics,
6 months ago
Political Science,
1 year ago
History,
1 year ago
Social Sciences,
1 year ago