Free. Exclusive. Just for you.
Four unique services that make learning easier, faster, and smarter - only on our website.

Write algorithm and draw flow-chart to print even numbers from 1 to 100. (Programming-In-C) - Free Printable

Write algorithm and draw flow-chart to print even numbers from 1 to 100.  (Programming-In-C)

Educational worksheet: Write algorithm and draw flow-chart to print even numbers from 1 to 100. (Programming-In-C). Download and print for classroom or home learning activities.

JPG 1280×720 75 KB Free · Personal Use
Quality Assured by Worksheets Library Team
Reviewed for educational accuracy and age-appropriateness
ID: #1787681
Show Answer Key & Explanations Step-by-step solution for: Write algorithm and draw flow-chart to print even numbers from 1 to 100. (Programming-In-C)
Let’s solve this step by step.

We need to print all even numbers from 1 to 100.

Even numbers are numbers divisible by 2 — like 2, 4, 6, 8, etc.

The algorithm in the image starts with:
1. Start
2. Initialize variable i to 1
3. While i <= 100

But if we start at 1 and just check every number, we’ll have to test each one to see if it’s even (using modulo operator). That works, but there’s a smarter way: since we only want even numbers, we can start at 2 and add 2 each time. That way, we skip all odd numbers automatically.

So let’s fix and complete the algorithm properly:

Step-by-step reasoning:

- We begin at 2 (first even number in range).
- We keep going while our number is ≤ 100.
- Each time, we print the current number.
- Then we add 2 to get the next even number.
- When we go past 100, we stop.

This avoids checking “if even” for every number — more efficient!

Now, let’s write the full correct algorithm:

Algorithm:
1. Start
2. Set i = 2 ← first even number
3. While i <= 100:
a. Print i
b. Set i = i + 2
4. End

That’s clean and simple.

For the flowchart (since you asked to draw it), here’s how to think about it visually:

→ Oval: “Start”
→ Rectangle: “i = 2”
→ Diamond: “Is i <= 100?” → Yes → go to print; No → go to end
→ Parallelogram: “Print i”
→ Rectangle: “i = i + 2”
→ Arrow back to diamond
→ Oval: “End”

You can sketch that on paper using standard flowchart symbols.

Final Answer:
Algorithm:
1. Start
2. Set i = 2
3. While i <= 100:
- Print i
- Set i = i + 2
4. End

Flowchart steps (to draw):
- Start → i=2 → Is i≤100? → Yes → Print i → i=i+2 → loop back to condition
- If No → End
Parent Tip: Review the logic above to help your child master the concept of printing numbers from 1 to 100 in c.
Print Download

How to use

Click Print to open a print-ready version directly in your browser, or use Download to save the file to your device. The ⭐ Answer button generates an AI answer key instantly - useful for teachers who need a quick reference. Need a different version? Our AI Worksheet Generator lets you create a custom worksheet on any topic in seconds.

(view all printing numbers from 1 to 100 in c)

Solved Exercise 1: Print the following series using while | Chegg.com
What is the algorithm to print between 1 and 100? - Quora
C Program to Print all Prime Numbers between Two Numbers | Learn Coding
C Program to Print Prime Numbers From 1 to N - GeeksforGeeks
C Program to Print Prime Numbers
Sample C++ Program to Print 1 to 100
C Program To Print Numbers From 1 To 100
9. C# Program to Print All Prime Numbers from 1 to 100 | Prime Numbers | C# Interview Questions
C Program for Print integer number from 100 to 0 in steps of -10 ...
C Program to Print Prime Numbers from 1 to 100