LearnPy Hub
← Variables problems
Easy

Reuse a Variable

Read an integer into x. Print x, then set x = x * 2 and print it, then set x = x - 3 and print it.

Input

One integer.

Output

Three lines.

Sample 1

Input
5
Output
5
10
7

Sample 2

Input
0
Output
0
0
-3
solution.py
Output appears here
Reuse a Variable · Python practice problem · LearnPy Hub