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 forecast was 70 units for the current period while actual demand was 76. the forecast for the next period is 75.8. what is alpha if a simple exponential smo
jjhgj hu u gygy ui i i
What does the government of the ussr believe it is necessary to state to the government of the us? that a ussr aircraft violated neutral airspace by flying 2,00
What is national debt
How can you identify and plot points on a coordinate grid?
Q2: Four friends each flipped a coin different numbers of times. ​ Alice got heads 75% of the time. ​ Mary got heads 8 out of 10 times. ​ Sarah got heads 17 out
Match the description to the political party before 1960. Abraham Lincoln was a member created and voted for The New Deal party members were all White Southerne
What does the government of the ussr believe it is necessary to state to the government of the us? that a ussr aircraft violated neutral airspace by flying 2,00
What is an example of totalitarianism today?
What is a unitary system of government quizlet?