DECLARE SUB Triangle( )
CLS
CALL Triangle
END
SUB Triangle
INPUT "Enter a base of triangle"; b
INPUT "Enter a height of triangle"; h
LET Area = (1/2) *b*h
PRINT "Area of triangle is", Area
END SUB
Computer Fundamentals,qbasic programming solutions , SLC / SEE computer science questions solved , qbasic programming,Computer Networks ,Operating Systems, Word Processing (MS Word),Spreadsheet Calculation (MS Excel),Presentation Systems (MS PowerPoint),Database Management System (MS Access)
Saturday, 6 June 2020
Write a program to input base and height of the triangle from user. The program should calculate and display the area of triangle using SUB – END SUB statement.(Hint: A=1/2bh)
Answer:
Subscribe to:
Post Comments (Atom)
-
Entrance Exam Question for Class 11 | CCRC Entrance Model Question - 2077 | Entrance Question for Grade XI
-
Match the Following Networking and Telecommunication 1. [SLC 2064] a) Radio Wave ...
-
1. Define information clearly. Ans: Information is organized or classified data, which has some meaningful values for the receiver....
No comments:
Post a Comment