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

What does ‘by next week’ mean? I have an assignment posted yesterday which’s Saturday and it says due by next week.
PLEASE HELP ME WITH THIS ASAP
6 numbers that have a median of 8 a mean of 9 and a range of 13?
The diagram shows a swimming course set out on a lake. Angle BCA = 90°. B 80m 145m C A Not to scale C is due north of A. Calculate the bearing of B from A.​
what are output devices? name any two common output devices.​
help i need ideas!my school is hosting a competition, relating to creating a piece of art, poetry, photography, dance or music and i was kind of asked to partic
Find the HCF of x 3 y 3 and y 4
The graph of (in blue) is translated a whole number of units horizontally and vertically to obtain the graph of (in red).
How many kilometers are in 462 meters? How many kilometers are in 462 meters ?​
How many gold medals the team won? 144 /360