Computer Science, asked by shantanugarg99, 3 months ago

Rewrite the for loop into While loop

count=0

for x in range (10,101):

if (x%2==0) and (x%6==0):

count=count+1

print (“count of even numbers multiples of 6 between 10 …100 is “,

count)​

Answers

Answered by atulkumargpt
1

Answer:

count = 0

x = 10

while x>101:

if (x%2==0) and (x%6==0):

count=count+1

x += 1

print (“count of even numbers multiples of 6 between 10 …100 is “,count)

Similar questions