29.8k views
5 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 Rambi
by
3.4k points

2 Answers

1 vote

Answer:

num = 4

while num <= 24:

print(num)

num+=4

this is python

User Kkopczak
by
4.2k points
4 votes

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

Step-by-step explanation:

this is Javascript, hoped it helped

User Shawnl
by
3.5k points