private: parts hide implementation from user.
public: parts.
Read Name1, Age1
Read Name2, Age2
If Name1 > Name2
Swap Name1 and Name2
Swap Age1 and Age2
Output Name1 and Age1
Output Name2 and Age2
Exam Style Questions