maxage = 0
for i=1..10
read name,age
if age > maxage {
maxage = age
maxname = name
}
next i
print maxname
read the names and age of 10 people and print the name of the oldest person.assume that there are no person of the same age.data is supplied in the following form:name,age,name,age
1 answer