Write a program in python to print how many numbers are divisible by 5 between 1 to 50.
Answers
Answered by
15
By using for loop⤵⤵⤵⤵⤵
sum=0
for i in range(51):
if(i%5==0):
sum=sum+i
break
print("numbers which are divisible by 5:",sum)
.
.
.
mark it and follow me dude...
Answered by
1
hope it may help to u......
Attachments:
Similar questions