Ask Question
30 June, 04:24

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.

+2
Answers (1)
  1. 30 June, 05:14
    0
    Int i = 1;

    for (i = 1; i < = 200; I++) {

    if ((i % 2) = = 0 && (i % 3) = = 0) {

    printf ("%i ", i);

    }

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers