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

Find the derivative of f(x) = -5/x at x = 11.
Why is it important to know the epicenter of an earthquake
How do you Increase 28 by 7% and how
Which of the following battles marked a turning point in the American Revolution?the Battle of Harlem Heightsthe Battle of Saratogathe Battle of Long Islandthe
What is the hybridization of the central atom in the sulfur hexafluoride sf6?
Is the sequence arithmetic if so identify the common difference 13 20 27 34?
butnal, butanone and, diethyl ether have different properties because the molecules of each compound differ in their
What was the main intent of the treaty of versailles?
Can someone please help. I want make sure I am doing this right is the restriction -3 or 3
In extreme cases, eutrophication can lead to extremely low levels of oxygen in a body of water as decomposers break down all the dead producers, a condition cal