1. A company that has 532 types of products, find out
which product has the highest price
Q1
Start
Max_Price =0
Count =0
532 times
No Yes
Count < 532
The final print
Read Price
Print ( “The maximum price is “,
Max_ price )
No Yes
price > Max_price
End
Count = count +1 Max_Price = price
Count = count +1
which product has the highest price
Q1
Start
Max_Price =0
Count =0
532 times
No Yes
Count < 532
The final print
Read Price
Print ( “The maximum price is “,
Max_ price )
No Yes
price > Max_price
End
Count = count +1 Max_Price = price
Count = count +1