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

"the thickness and __________ of soil are key factors in determining site suitability for a septic system."
When comparing cholera outbreaks of the past and present, we said that 19th-century London and present-day Zimbabwe have poor healthcare by modern standards. Ho
Can someone give me ideas on how to start off my Propaganda Essay?
What are non civic issues? What makes them non civic?
During resistance training how often should you move
Which are examples of the discrimination that European Jews endured throughout history? Check all that apply.
Suppose a triangle has sides a, b, and c, and let theta be opposite the side of length a. If cos theta < 0, what must be true?
Which statement BEST describes a lifestyle with healthy eating habits? A. John and his family follow a diet plan that consists of healthy foods. If they begin t
99+ POINTS FOR SERIOUS ANSWERS ONLY
The table shows the solution to the equation |2x − 5| − 2 = 3: Step 1 |2x − 5| = 3 + 2 Step 2 |2x − 5| = 5 Step 3 2x − 5 = 5 or 2x − 5 = −5 Step 4 2x = 10 or