nnekaeke123
nnekaeke123 nnekaeke123
  • 02-06-2022
  • Computers and Technology
contestada

write an algorithm to print the first 100 odd numbers​

Respuesta :

angelloveschurch angelloveschurch
  • 02-06-2022

Answer:

ALGORITHM :

Step 1: Start

Step 2: Declare variable c of integer type

Step 3: Set c=0

Step 4: Repeat step 4.1 to 4.3 while (c<=100)

Step 4.1: if (c%2 != 0)

Step 4.2: then print c

Step 4.3 : c=c+1

Step 5: Stop

FLOWCHART:

Explanation:

Ver imagen angelloveschurch
Answer Link

Otras preguntas

Melissa wants to sauté some peas, but wants to ensure that they do not loose their bright green color. How should Melissa cook the peas? A. boil the peas first
Multiply (3.2 x 103) x (1.5 x 103)
O A. Vertical angles are congruent. O B If two lines are parallel, then alternate exterior angles are congruent. O C. If two lines are parallel, then alternat
find the range 451,,464,419,424,440
Select the word or phrase that best completes each sentence. 1. The March on Washington promoted civil rights because it was .
students ages 10-17 were survey about their eating habits during breakfast.
what did Benjamin Franklin proposed an idea known as the Albany Plan of Union?
Fought a major war against the British in the late 1800s which economic system is this
Most binary systems with an invisible companion contain a large, bright star and a small, dim star hidden by the light of its larger companion. However, in some
Jakes family was on vacation for two weeks and five days. Seth’s family was on vacation for three weeks and two days.How many fewer days was Jake on vacation th