Posts

Showing posts from October, 2019

Dashain homework

WAP to find area of rectangle  CLS INPUT "INTER LENGTH";L INPUT "INTER BREADTH";B A=L*B PRINT "AREA OF RECTANGLE=";A END WAP to find area of circle CLS INPUT "ENTER RADIUS";R A=22/7 *R^2 PRINT"AREA OF CIRCLE=";A END WAP to find a area of square CLS INPUT "ENTER Length";L A=L^2 PRINT "area of square =";A END WAP to find a area of triangle CLS INPUT "ENTER base";B INPUT "ENTER height";H A=1/2 *B*H PRINT "AREA of triangle";A END WAP to find a volume of cylinder CLS INPUT "ENTER Radius";R INPUT "INTER Height";H V=22/7 *R^2*H PRINT "Volume of cylinder =";V END WAP to find input percentage and display pass or fail CLS INPUT "ENTER Percentage";P IF P> =40 THEN PRINT"PASS" ELSE PRINT" FAIL" END WAP to input any number and check odd or even CLS INPUT "ENTER an