Computer Science, asked by momitasahamondal, 6 days ago

flowchart to calculate and print the area of square and rectangle​

Answers

Answered by samarthsherryshetty
1

Answer:

Area = Side 2 To calculate the Area of Rectangle we are given the length and breadth of rectangle as input and we use the given formula ...

Answered by Aryan385t
1

Answer:

CLS

PRINT"ENTER YOUR CHOICE";

PRINT"PRESS 1 FOR AREA OF CIRCLE";

PRINT"PRESS 2 FOR AREA OF RECTANGLE";

PRINT"PRESS 3 FOR PERIMETER OF RECTANGLE";

PRINT "PRESS 4 FOR VOLUME OF CUBOID";

INPUT "CHOOSE YOUR CHOICE 1/2/3/4 "; CH

CASE 1

INPUT "ENTER A RADIUS";R

AREA OF CIRCLE (A) = 3.14*R*R

PRINT "AREA OF CIRCLE";A

CASE 2

INPUT "ENTER LENGTH AS";L

INPUT"ENTER BREADTH AS "; B

AREA OF RECTANGLE(A)=L*B

PRINT "AREA OF RECTANGLE ";A

CASE 3

INPUT "ENTER LENGTH AS ";L

INPUT"ENTER BREADTH AS ";B

PERIMETER OF RECATANGLE(P)= 2 (L+B)

PRINT"PERIMETER OF RECTANGLE "; P

CASE 4

INPUT "ENTER LENGTH AS";L

INPUT "ENTER BREADTH AS ";B

INPUT "ENTER HEIGHT AS ";H

VOLUME OF CUBOID(V)=L*B*H

PRINT"VOLUME OF CUBOID";V

CASE ELSE

PRINT "YOU ENTERED INCORRECT CHOICE";

END SELECT

END

Explanation:

Please send me a meet invite

Similar questions