Report Bug
Qus :

How many numbers will be printed by the following code?

def fun(a,b):
    for x in range(a,b+1):
        if x%3==0:
            print(x,end=" ")
fun(100,120)

Qus

निम्नलिखित कोड से कितनी संख्याएँ प्रिंट होंगी?

def fun(a,b):
    for x in range(a,b+1):
        if x%3==0:
            print(x,end=" ")
fun(100,120)


A. 7
B. 8
C. 6
D. 9


Solution
A. 7



Explanation

The output is:

102 105 108 111 114 117 120 




Report Bug