179k views
2 votes
Write an algorithm and flowchart to display H.C.F and L.C.M of given to numbers.​

User SidD
by
6.3k points

1 Answer

3 votes

Answer:

Write an algorithm to input a natural number, n, and calculate the odd numbers equal or less than n. ... Design an algorithm and flowchart to input fifty numbers and calculate their sum. Algorithm: Step1: Start Step2: Initialize the count variable to zero Step3: Initialize the sum variable to zero Step4: Read a number say x Step 5: Add 1 to the number in the count variable Step6: Add the ..

Step-by-step explanation:

User Danrodlor
by
6.2k points