Computer Science, asked by naeem74, 7 months ago

write a program to write * five times in QBASIC​

Answers

Answered by crazygirl60
0

Answer:

  • To begin, write down everything from the program below ("PRINT "Hello World") into a text editor or into the QBasic IDE (Integrated Development Interface) itself and save it as "1HELLO. BAS". Next open the file in QBasic (unless you used QBasic IDE in which case it is already open) and press F5.
Answered by anindyaadhikari13
2

Here is the program that will write * five times in QBASIC

CLS

FOR I =1 TO 5 STEP 1

PRINT "*"

NEXT I

In other langauge like Python

for I in range(0,5):

print("*")

In Java,

class x

{

static void main()

{

for(int I=1;I<=n;I++)

System.out.println("*");

}

}

Similar questions