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

2/3 of 3/4 is equal to
Why does Mark Twain call the economic and social conditions depicted in his novel "an entirely ideal state of society"
Does the preamble to the Declaration of Independence indicate reasons why the new independent government might be similarly removed or overthrown? Why or why no
During which Chinese dynasty were the terra-cotta warriors created to protect Emperor Shi Huangdi in the afterlife? Han Qin Shang They were created during the H
Ethos assures your reader or audience that you have?
How did Stalin and Mussolini maintain their power?
How many times greater is one mile than one foot
In a bear population, the allele frequency of a gene for brown fur increases from 15 percent to 25 percent. What is happening to the population of bears? A. The
Which Roman contribution to political theory was adapted by the Founding Fathers
Why do many governments in countries with market economies control or outlaw monopolies? Monopolies are always run by selfish people who defraud consumers. Mono