Commit 8faea800 authored by Michael's avatar Michael

michael.davityan:exercise_04_19v2

parent d8b91a79
Pipeline #23152782 passed with stage
in 3 minutes 3 seconds
......@@ -18,10 +18,8 @@ main()
secondLargest = firstLargest;
firstLargest = number;
}
if (firstLargest != number) {
if (secondLargest < number) {
secondLargest = number;
}
else if (secondLargest < number) {
secondLargest = number;
}
++count;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment