Computer Applications

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

330 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 accept the length of two different line segments and check whether they are equal or unequal. Display the message accordingly. Algorithms and Flowcharts, APC Understanding Computer Studies Solutions ICSE Class 8.

Answered By

237 Likes


Related Questions