Back

code keta - absolute beginner program 7

Created 3 years ago
84 Views
4 Comments
KeerthanaPS
@KeerthanaPS
KeerthanaPS
@KeerthanaPSProfile is locked. Login

number = 9;

multiples = int(input())

if(multiples == 0):

print("NULL")

else:

for n in range(1,multiples+1):

result = number*n

print(result, end=" ")

I wrote this with Python, the expected output and actual output are the same but am getting an extra space at last. Please help me to solve the error

Testcase Status:
>>> error
Input:
3
Expected Output:
9 18 27
Actual Output:
9 18 27 

Comments (4)
Please login to comment.