s6cal0donafranda s6cal0donafranda
  • 09-03-2017
  • Computers and Technology
contestada

Write a for loop that prints in ascending order all the positive integers less than 200 that are divisible by both 2 and 3, separated by spaces.

Respuesta :

Goldps
Goldps Goldps
  • 09-03-2017
int i = 1;
for(i = 1; i <= 200; I++) {
if((i % 2) == 0 && (i % 3) == 0) {
printf("%i ", i);
}
}
Answer Link

Otras preguntas

which equation represents the line that passes through the points (6 -3) and (-4 -9)
For what did the enterprise for the americas initiative pave the way
how many pounds is 6 tons
A Cart at the top of a 300m hill has a mass of 40kg. what is the carts gravitational potential energy?
Why is a high temperature needed to melt potassium iodide?
The two most common types of drama are
Psychologists focus solely on the way we think and feel. true or false?
To protest discrimination who organized a march on Washington on july 1, 1941
all quadrilaterals are parallelograms
What is the strait that controls access to the black sea?