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

While slavery was a part of African culture, how were slaves treated in Africa?
The area of a rectangle is 27ft^2, and the length of the rectangle is 3ft less than twice the width. find the dimensions of the rectangle.
What does acculturation mean? How did new immigrants put this idea into practice in their lives?
What is the best definition for a dynamic character? A. a character who undergoes an internal change over the course of the story B. a character who does not c
Identify the sentence for questions 1–3 in which the underlined word is used INCORRECTLY.1. (1 point) This pitcher is missing its handle. Its going to be diffic
i really need this answered!!! please help!
Chantelle has 23 cookies. She gives 3 3/6 to her friend Emily how many does she have now
What type of government did Anti-Federalists favor? A. Weak state governments B. Stronger state governments C. Strong national constitution
List a few ways that would lead you to believe a chemical reaction has occurred
What was the impact of the American Revolution on other countries? A. It allowed other countries to gain land in North America after Great Britain left.