write any QBASIC program
Answers
Answered by
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
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