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

How many district positive factors does 2018 have?
A plant has an initial height of 2 inches and grows at a constant rate of 2 inches each month. A second plant that also grows at a constant rate has an initial
How does density change as you go deeper in earth
Which type of sensory detail is used in the following sentence? The air was hot and humid as the Phoenician ships sailed on the wild sea. sense of sight sense
Can someone please help me I really need help
Which of the following could be placed in the area labeled G?
Why does a helium-filled balloon float up when it is released?
-Aaron A. Bradley -Tunis Campbell -Henry McNeal Turner What did each of these African American legislators have in common? A) All were ministers. B) All had bee
Need to be show how to solve step by step. And find a least common multiple
How is erosion different than weathering? What are the different types of water erosion? What factors contribute to the rate of water erosion?