1 Answer
Here's the first answer:
(1) read first number
(2) read second number
(3) if first is greater, display second, else display first
The second and third can be done the same way:
(1) read first number and set highestSeenSoFar to it
(2) read another number, and if greater than highestSeenSoFar, set highesSeenSoFar to the new number
(3) repeat step 2 (twice for 3 numbers total, 99 times for 100 numbers)
(4) display highestSeenSoFar
(1) read first number
(2) read second number
(3) if first is greater, display second, else display first
The second and third can be done the same way:
(1) read first number and set highestSeenSoFar to it
(2) read another number, and if greater than highestSeenSoFar, set highesSeenSoFar to the new number
(3) repeat step 2 (twice for 3 numbers total, 99 times for 100 numbers)
(4) display highestSeenSoFar
| 13 years ago. Rating: 2 | |
Related Questions In This Category
Top contributors in Programming & Design category
Unanswered Questions
FV88
Answers: 0
Views: 10
Rating: 0
Xoi Lac TV Nen Tang Xem Bong Da Truc Tuyen Chat Luong Cao Duoc Yeu Thich Hien Nay
Answers: 0
Views: 10
Rating: 0
МЦ ЛОДЭ
Answers: 0
Views: 8
Rating: 0
88ibetscom
Answers: 0
Views: 13
Rating: 0
fitness coaching
Answers: 0
Views: 12
Rating: 0
Palivescom
Answers: 0
Views: 17
Rating: 0
abc8gdcom
Answers: 0
Views: 16
Rating: 0
Hthsports org
> More questions...
Answers: 0
Views: 11
Rating: 0
tanish singh
Deleted User