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

PHYSICS QUESTION: specific heat capacity
Which set is a subset of every set? {}, {0}, {1}
Which of the following best describes one reason that thousands of Japanese Americans voluntarily joined the US military during World War II? A to show their lo
Is the least common factor of a pair of numbers every equal to one of the numbers
What is the ratio of 6/7
Which of the following information systems positions is most likely to be involved in unstructured decision-making? senior developer junior developer chief i
we can determine the velocity of a wave when given the _______ and the wavelength. (2 points) frequency amplitude crest equilibrium
Convert 2845 inches per second to miles per hour. Round to one decimal place.
Lewis bought a roll of ribbons she is 34 inches on each of two gifts then she is 13 inches on a script page there are 39 inches left how many inches did she sta
if 25% of a number is 12.5 what is the oringal number