Asked by Sufian Amir
Write a program that reads in two people‘s age and then names, and then output who is older.
Answers
Answered by
oobleck
read a1,n1
read a2,n2
print (a1>a2) ? n1 : n2
read a2,n2
print (a1>a2) ? n1 : n2
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.