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
8.1k points

2 Answers

1 vote

Answer:

num = 4

while num <= 24:

print(num)

num+=4

this is python

User Kkopczak
by
9.0k 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
8.0k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.