Module: (C++) Conditional operator


Problem

5 /17


Smaller and bigger

Problem

Two integers a and b are given. The smaller of the two numbers is doubled, and the larger is triple.

Input format
The program receives as input two different integers written on the same line, separated by a space.

Output format
Output the converted numbers, first the converted number a, then b.
 
Example
N Input Output
1 3 5 6 15