Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM PROGRAM TO DISPLAY SUM OF TWO NUMBERS
- CLS
- INPUT “ENTER FIRST NUMBER”; A
- INPUT “ENTER SECOND NUMBER”; B
- S = A + B
- PRINT “SUM OF TWO NUMBERS”; S
- END
- REM PROGRAM TO DISPLAY PERIMETER OF RECTANGLE
- CLS
- INPUT “ENTER LENGTH”; L
- INPUT “ENTER BREADTH”; B
- P = 2 * (L + B)
- PRINT “PERIMETER OF RECTANGLE ”; P
- END
- **********************************************************************************************
- REM PROGRAM TO DISPLAY PERIMETER OF SQUARE
- CLS
- INPUT “ENTER LENGTH”; L
- P = 4 * L
- PRINT “PERIMETER OF SQUARE ”; P
- END
- *******************************************************************************************
- area
- ******************************************************************************************
- REM PROGRAM TO DISPLAY AREA OF RECTANGLE
- CLS
- INPUT “ENTER LENGTH”; L
- INPUT “ENTER BREADTH”; B
- A = L * B
- PRINT “AREA OF RECTANGLE ”; A
- END
- REM PROGRAM TO DISPLAY AREA OF SQUARE
- CLS
- INPUT “ENTER LENGTH”; L
- A = L ^ 2
- PRINT “AREA OF SQUARE ”; A
- END
- circle*************************
- CLS
- LET pie = 3.14
- INPUT "Enter radius of circle"; r
- a = pie * r ^ 2
- c = 2 * pie * r
- PRINT "The area of the circle is"; a
- PRINT "The circumference of the circle is"; c
- END
- ******************************************************************************
- CLS
- INPUT "Enter a Number: ", n
- IF n MOD 2 = 0 THEN
- PRINT "Input Number is Even"
- ELSE
- PRINT "Input Number is Odd"
- END IF
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement