Technologies
C
Write an algorithm and draw the flowchart to find the largest number amoug two numbers?
  CLanguage
  Saturday, 12 Aug 2017
  16805
    0
  • Algorithm :

    • Step 1 : Start
    • Start 2 : Input a, b
    • Start 3 : if a > b then Output a else Output b
    • Start 7 : Stop

Flowchart :

Example 1 : Input : 15 7
Output : 15
Example 2 : Input : 4 16
Output : 16