Ask a New Question

Asked by Sufian Amir

Write a program that reads in two people‘s age and then names, and then output who is older.
5 years ago

Answers

Answered by oobleck
read a1,n1
read a2,n2
print (a1>a2) ? n1 : n2
5 years ago
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.

Related Questions

Write a C++ program that reads the population of town A and its growth rate as well as the popula... Write a program that reads from the student user: his name as string (%s), his id as integer and hi... A. Write a program which reads an array of up to 200 integers from input and then does all the follo... write a c++ program which reads student name,ID ,mid,final for single course and for ten students an... Write a program that reads in the users age and determines if the user is a child or adult 1. Write a program that reads the name, age and salary of 10 persons and perform the following opera... Write a program that reads n integers from the keyboard and calculates their sum using do-while loop
Submit Your Answer

Question

Write a program that reads in two people‘s age and then names, and then output who is older.

Ask a New Question
Archives Contact Us Privacy Policy Terms of Use