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

You walk forward at 1.5 m/s for 8 s. Your friend decides to walk faster and starts out at 2.0 m/s for the first 4 s. Then she slows down and walks forward at 1.
Costs that fluctuate based on production levels achieved are called ________ costs. Answer market-driven overhead fixed variable
Where is the carbon taken in by plants during photosynthesis stored? a. the ground b. plant structures c. the air d. all of the above
The radius of a circular lake is 5 miles. What is the distance around the edge of the lake?
what definition of the term Yankee is correct
Exercise has no effect on breathing. a. True b. False
One responsibility of the Center for Drug Evaluation and Research is to work with product marketers. a. True b. False
what was a lasting effect of the Korean war
Few people will use your 4’ Internet site to purchase products if they feel it is ______. a. Not secure b. Easy to use c. Quick loading d. Professional looking
the gravitational attraction between two objects will what is the object move further apart