Flowchart to print even numbers from 1 to 100


Asked by admin @ in Computer Science viewed by 498 People


Develop an algorithm and flow chart to print all even numbers below 100 in descending order

Answered by admin @



Algorithm:

1. Start

2. Assign the variable i with 99

3. Check whether i!=0 condition satisfies in looping.

4. If yes, check if i value is exactly divisible by 2 leaving the remainder 0 or not. If the 'if condition' says yes, print the number. Decrement the value of i by 1 in the loop irrespective of 'if condition'.

5. If no, terminate the loop.

6. Stop.

Flowchart: Check the ATTACHMENT given below.

Program 1 (Using while loop):

i=99

while(i!=0)

   if i%2==0:

      print(i)

   i=i-1

Program 2 (Using for loop):

for i in range(99,0,-1):

    if i%2==0:

       print(i)

 

Learn more:

1. Draw a flowchart for a program which asks the user to enter a password. If the user enters “HiThere!” then print “Welcome”, and then end the program.

brainly.in/question/25635867

2. Write an algorithm and draw a flowchart to input name and age of a person and print eligible. If age >=18 else print Not Eligible along with name

brainly.in/question/18370913


Similar Questions

Even prime numbers from 1 to 100

Asked by admin @ in Math viewed by 339 persons

How many even numbers between 1 to 100 are prime?​

Sum of even numbers from 1 to 100

Asked by admin @ in Math viewed by 377 persons

Sum of all even numbers between 1 to 100

Sum of all even numbers from 1 to 100

Asked by admin @ in Math viewed by 363 persons

Sum of all even numbers between 1 to 100

What is the sum of even numbers 1 to 100

Asked by admin @ in Math viewed by 339 persons

Sum of all even numbers between 1 to 100

How many even numbers between 1 and 100

Asked by admin @ in Math viewed by 359 persons

How many even numbers are there between 1 and 100 (both inclusive)?​

Flowchart to find the sum of first 100 natural numbers

Asked by admin @ in Computer Science viewed by 331 persons

Draw the flowchart to print sum of first 100 natural numbers.

Number of prime numbers between 1 and 100

Asked by admin @ in Math viewed by 295 persons

How many prime numbers are there between 1 to 100 . a) 12 b) 15 c) 25d) 20 ​

List of prime numbers from 1 to 100

Asked by admin @ in Math viewed by 347 persons

A List all the prime numbers from 1 to 100.​

List all the prime numbers from 1 to 100

Asked by admin @ in Math viewed by 389 persons

A List all the prime numbers from 1 to 100.​

Sum of odd numbers from 1 to 100

Asked by admin @ in Math viewed by 366 persons

Find the sum of odd integer from 1 to 100​

Sum of all odd numbers from 1 to 100

Asked by admin @ in Math viewed by 387 persons

Find the sum of odd integer from 1 to 100​

Twin prime numbers between 1 and 100

Asked by maham237 @ in Mathematics viewed by 339 persons

There are 25 prime numbers between 1 and 100. There are 46 prime numbers between 1 and 200. Which situation is more likely? Explain your reasoning. 1. A computer produces …

Sum of all natural numbers from 1 to 100

Asked by admin @ in Math viewed by 343 persons

Find the sum of all natural number from 1 to 100

Find the sum of natural numbers from 1 to 100

Asked by admin @ in Math viewed by 279 persons

Find the sum of all natural number from 1 to 100

Twin prime numbers between 1 to 100 in c

Asked by admin @ in Math viewed by 311 persons

What are the twin prime numbers between 1 and 100

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19030 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15816 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10977 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10407 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8723 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8145 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7845 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6492 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5796 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5696 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5479 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4986 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4976 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4690 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4492 persons