496,288 views
9 votes
9 votes
Write a program that uses a while loop to calculate and print the multiples of 4 from 4 to 24. Your program should print each number on a separate line.

User Plutownium
by
2.6k points

2 Answers

20 votes
20 votes

Answer:

num = 4

while num <= 24:

print(num)

num+=4

this is python

User Pensum
by
2.5k points
8 votes
8 votes

Answer:
let i = 0
while (i <= 6){
console.log(`${4 * i}`)
i++
}

Step-by-step explanation:

this is Javascript, hoped it helped

User Moldovean
by
3.1k points