Back

actual o/p & expected o/p are same but test cases failed

Created 2 years ago
51 Views
1 Comments
Shaik21Ioam
@Shaik21Ioam
Shaik21Ioam
@Shaik21IoamProfile is locked. Login

Using the method of looping, write a program to print the table of 9 till N in the format as follows:

My code:-

a = int(input())

if a == 0:

print("NULL")

else:

table = ""

for i in range(1,a+1):

product = 9*i

table += str(product) + " "

print(table)

Comments
Please login to comment.