Ask a New Question

Question

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

Answers

oobleck
read a1,n1
read a2,n2
print (a1>a2) ? n1 : n2
5 years ago

Related Questions

write a program that reads ten numbers, computes their average and find out how many numbers are abo... Write a program that reads test scores up to 30 into an array. sentinel will stop when -1 is enter... Write a program   that reads the subtotal and the gratuity rate in this order, then computes the gra... 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... Write a program that reads a five digit integer number from the keyboard, and then constructs the l... write a c++ program which reads student name,ID ,mid,final for single course and for ten students an... 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 Write a program that reads an unspecified number of integers, determines how many positive and negat...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use