Expression Value B

Python Medium 2 views
Back to Questions

Problem Description

Read three integers a b c. Compute a + b*c and a*b + c. Output both in one line.

Input Format

One line: a b c.

Output Format

One line: x y.

Sample Test Case

Input:
2 3 4
Output:
14 10

Constraints

Values fit in 64-bit.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next