Computer Science, asked by varunrathourpcu4cz, 1 year ago

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 armaangoel217
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 :)
armaangoel217: Mark it as brainliest then? :p
armaangoel217: Hahahaa, i think its the brain icon on top right corner
armaangoel217: ok forget it
armaangoel217: apparently, you will get the option to mark my answer as brainliest in a few days :) pls mark it then ;)
Answered by Anonymous
3
hi mate here is Ur answer
Attachments:
Similar questions