after print( i ) we are getting valuer of i
i just want to know how to calculate the no of values of i printed ( or the length of values of i ) for example id printed values of i are 5 in number such as 2, 4 ,8 ,1 0 ,12 (how to get printed 5)
ITS A PYTHON 3 CODE
Attachments:
Answers
Answered by
1
c=0
if(i%a==0 and i!=a):
c=c+1
print(c)
Explanation:
initialize c as 0, if i is a multiple of a then add 1 to c, after the for loop is completed, print c to show how many multiples the number input has
armaangoel217:
Yes :)
Answered by
3
hi mate here is Ur answer
Attachments:
Similar questions