Posts

Showing posts from October, 2019

Qbasic

1) Write a program to find the area of rectangular      CLS      INPUT '' Enter Length'';L      INPUT ''Enter breadth'';B      A=L*B      PRINT '' AREA OF RECTANGULAR'':A      END 2) Write a program to display 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 a area of square      CLS      INPUT ''Enter Length '';L      A=L^2      PRINT''Area of Square ''; A      END 4) Write a program to find volume of cylinder      CLS       INPUT ''Enter Radius'';R       INPUT ''Enter Height'';H       A = 22/7*R^2*H       PRINT''Volume of cylinder'';V       END 5) Write a program to find input percentage and display pass and fail      CLS      INPUT ''Enter percentage'';P      IF P>=40 THEN      PRINT &