Saturday, October 21, 2017

Find the maximum of a list of numbers

Aim
  To write a program to find maximum number of a list of numbers.
Algorithm:
Step1:  Start
Step2:  Read Upper Limit of the List
Step3: Read element to the list using loop until upper Limit
Step4: Set first element as maxno=list[0]
Step5: Set i=0
Step6: If list [i] >maxno then set maxno=list1[i]
Step7: Increment i by 1
Step8: Repeat Step 6-7 till i<size (Where size is the size of list).
Step9: Print Maximum Number maxno
Step10: Stop
https://drive.google.com/file/d/0ByMcz7t6A0gicjk2alg0VWNPSWM/view?usp=sharing

No comments:

Post a Comment