Computer Science, asked by dev1057, 11 months ago

write any QBASIC program​

Answers

Answered by brishtimajj3998
0

QBASIC PROGRAM :

A program to input length and breadth of a rectangle and print are an perimeter.

=>

Program :-

REM Program of perimeter of rectangle

INPUT A, B

AREA= A*B

PRINT "AREA OF RECTANGLE " AREA

PRINT " PERIMETER OF A RECTANGLE " PERIMETER

PERIMETER = 2*(A+B)

END

Answered by anindyaadhikari13
1

As you told to write a QBASIC program, we we create a simple program that will print Welcome..

So, here the code comes

CLS

PRINT "WELCOME TO QBASIC."

PRINT "I AM LEARING QBASIC. "

PRINT "HAVE A GREAT DAY. "

END

The CLS statement is used to clear the screen.

The print statement is used to display output on the screen.

The end statement is used to terminate the program.

Similar questions