Using the method of looping, write a program to print the table of 9 till N in the format as follows: (N is input by the user) 9 18 27... Print NULL if 0 is input
Created 3 years ago
1424
Views
3
Comments
*************Im getting test case error but actual and expected is correct*****************8
n=int(input())
if (n>=1):
for i in range(1,n+1):
m=i*9
print(m,end=' ')
else:
print("NULL")
Input:
3
Expected Output:
9 18 27
Actual Output:
9 18 27
Execution Time:
>>> 0.021s