Posts

Showing posts from October, 2019

Dashin & Tihar homework

Post 15 QBasic programming on blog. (Question are given in copy) 1. Write a program to find a area of rectangle. - CLS INPUT "Enter length"; L INPUT "Enter breadth"; B A = L * B PRINT "Area of rectangle ="; A END 2. Write a program to find a area of circle. CLS - INPUT "Enter Radius"; R A = 22 / 7 * R^2 PRINT "Area of circle ="; A END 3.Write a program to find area of square. - CLS INPUT " Enter lenght"; L A = L^2 PRINT " Area of square=";A END 4. Write a program to find area of triangle. - CLS INPUT "Enter base"; B INPUT " Enter height"; H A = 1/2 * B * H PRINT "Area of triangle="; A END 5. Write a program to find area of cylinder. - CLS INPUT "Enter Radius"; R INPUT "Enter Height"; H V = 22/7 *R^2*H PRINT " Volume of cylinder=";V END 6. Write a program to input percentage and display pass or fail. - CLS INPUT "Enter p