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

The ICC was formed to A. oversee railroad operations. B. control interstate commerce. C. make new transportation laws. D. regulate communications
What did the Framers want to achieve by establishing the principle of federalism in the Constitution? distribution of state and national powers expansion of t
73 percent of what is 156.4
Which invention is Eli Whitney best known for
when focusing on low power, which knob is used to get a clear image
The Oxford English Dictionary traces the development of _____________ words in the English language. a. some c. important b. all d. changing
is it greater than or less than when the bubble on the graph line isn't colored in?
Tubes of oil paint are on sale for $.50 cents off. Cody bought 6 tubes if paint on sale and paid a total of $25.80. Write and sole an equation for "r" for the r
Why did European nations send missionaries to convert people in Africa and Asia to Christianity
which of the following sentences contains a verb in present tense a) jessica enjoys running b)grandma had sent us cookies c)we left early d)they are walking aro