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

considere as alternativas seguintes sobre o período socrático e indique a correta
if an atom contains 12 protons and 10 neutrons, what's its mass number? a. 12 b. 10 c. 22 d. 2
Which of the following is an example of liverwort? a. Sphagnum b. Marchantia c. Fontinalis
Identify the oxidizing agent and the reducing agent for 4Li(s) + O_2 (g) to 2Li_2O(s).
Which of the following expressions represents the lateral area of a right cone with r units as the radius of its base, l units as its slant height, and h units
The use of iron for tools and weapons developed later than the use of copper because iron __________.
Why did so many people invest in the stock market in the 1920s?
Looping is a tool that helps a writer _____. A) narrow a topic B) write a paragraph C) revise a draft D) generate a topic
Which institution of the European Union (EU) is the executive body? A.Council of the European Union B.European Parliament C.European Commission D.Court of Justi
This is the form of government with one ruler, such as a king or queen.