Algoritma Sorusu Yardımcı Olabilir Misiniz?

Question

1) Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the maximum of the sequence.

2) Given a sequence of distinct non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the second largest element in this sequence. It is guaranteed that the sequence has at least two elements.

3) Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Find how many elements of this sequence are equal to its largest element.

Not: Yardımcı olabilirseniz sevinirim.. Şimdiden teşekkürler..:))

0
Diğer Rabia IŞIK 1 month 0 Answers 67 views Kalfa 0

About Rabia IŞIKKalfa

Leave an answer

Captcha Click on image to update the captcha .