KnowledgeBoat Logo

Algorithms & Flowcharts for ICSE Computers

Write algorithms and draw flowcharts for the following:

Accept the length of two different line segments and check whether they are equal or unequal. Display the message accordingly.

Algo & Flowcharts

ICSE

37 Likes

Answer

Algorithm

Step 1: Start
Step 2: Accept the length of the two line segments as l1 and l2.
Step 3: If l1 and l2 are equal, then display 'Line Segments are equal'.
Step 4: If l1 and l2 are not equal, then display 'Line Segments are not equal'.
Step 5: Stop

Flowchart

Flowchart to find the greater of two line segments. Class 8 ICSE Computer Studies.

Answered By

27 Likes