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

6. State whether each of the following is an example of conduction, convection, and/or radiation. Explain if you think there is more than one possibility. (a)Y
What is the purpose of an adjective? A) To replace a noun B) To change a verb tense C) To Modify a noun or D) To modify a verb
Lee had a total of 40 e-mails on Monday. Twelve of the e-mails were from her friend Cara. What percent of the e-mails were from Cara?
The sun is a source of
The graph of the function f(x) = (x − 3)(x + 1) is shown. Which describes all of the values for which the graph is positive and decreasing? A.all real values of
Which expressions are equivalent to 16x4 − 64? Check all that apply. 16x4 + 16x – 16x – 64 16x4 – 8x – 8x – 64 (4x2 + 8)(4x2 – 8) 16(x2 + 2)(x2 – 2) 4(4x4 – 8)
Square root of 2 times the square root of 3. I think it is the square root of 6 but I do not know what to do after that in terms of multiplying surds.
How did people get life
Meridians of longitude measure distances _________ and _________ of the _________. a. north; south; equator b. east; west; prime meridian c. north; south; pr
Stan has more than $3.50 in his pocket. what is the answer A. x>$3.50 B. x<3.50$ C. 3.50≤ x D. 3.50 ≥ x