Print 2N and 4N

The program must accept an integer N as the input. The program must print 2N and 4N as the output. Please fill in the blanks of code so that the program runs successfully.

Example Input/Output 1:
Input:
8

Output:
16
32

Example Input/Output 2:
Input:
5

Output:
10
20

N = int(input())
print(N << 1)
print(N << 2)
N = int(input())
print(N*2)
print(N*4)

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts. You may also be interested in.