Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/part-3/4-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ Age of the oldest: 10
<programming-exercise name='Name of the oldest' tmcname='part03-Part03_31.NameOfTheOldest'>

<!-- Kirjoita ohjelma, joka lukee käyttäjältä henkilötietoja. Henkilötiedot sisältävät etunimen ja syntymävuoden pilkulla eroteltuna. Tietojen lukemista jatketaan kunnes käyttäjä syöttää tyhjän merkkijonon. -->
Write a program that reads names and ages from the user until an empty line is entered. The name and age are separed by a comma.
Write a program that reads names and ages from the user until an empty line is entered. The name and age are separated by a comma.

<!-- Kun lukeminen lopetetaan, ohjelma tulostaa vanhimman henkilön nimen. Voit olettaa, että vanhimman henkilön ikä on yksikäsitteinen. -->
After reading all user input, the program prints the name of the oldest person. You can assume that the user enters at least one person, and the that one of the users is older than the others.
Expand Down