Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
220 views1 page

Pseudocode Exercise

The document outlines three pseudocode exercises: calculating the area of a circle using the formula Area = π * radius^2, finding the largest of two numbers through comparison, and counting from 1 to N using a loop. Each exercise specifies the input requirements and the expected output. The document serves as a guide for writing pseudocode for basic programming tasks.

Uploaded by

ramdeensharona
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views1 page

Pseudocode Exercise

The document outlines three pseudocode exercises: calculating the area of a circle using the formula Area = π * radius^2, finding the largest of two numbers through comparison, and counting from 1 to N using a loop. Each exercise specifies the input requirements and the expected output. The document serves as a guide for writing pseudocode for basic programming tasks.

Uploaded by

ramdeensharona
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Pseudocode Exercise

1. Calculate the Area of a Circle

Write pseudocode that:

• Accepts the radius of a circle.

• Calculates the area using the formula: Area = π * radius^2 (use 3.14 for π).

• Displays the area.

2. Find the Largest of Two Numbers

Write pseudocode that:

• Accepts two numbers.

• Compares them.

• Displays the larger number.

3. Count from 1 to N

Write pseudocode that:

• Accepts a number N.

• Displays the numbers from 1 to N using a loop.

You might also like