Computer Science, asked by Vaibhav1234567, 1 year ago

QBasic program to print your name 10 times

Answers

Answered by lehani
10
You have to understand that the console.log is a part of the loop because it's inside { }.

So you can put any information in the console.log, it will be repeated.

Just look at the code, it works, it repeats my name ten time :

// for (start; stop; how much to change each time) for (var counter = 1; counter <= 10; counter = counter + 1) { // Everything in the code block starting with '{' and // ending with '}' will run once each time through the loop console.log("Julien"); }
Answered by vanshikasharma201301
1

Answer:

Cls

For i

print "your name "

sleep 1

Next I

End

Explanation:

Cls

For i

print "your name "

sleep 1

Next I

End

Attachments:
Similar questions