1.
Sum of Two Numbers
Algorithm:
1. Start
2. Input number A
3. Input number B
4. Sum = A + B
5. Display Sum
6. Stop
Start
Take two
numbers(say, A
and B)
Add the two
numbers
A+B=C
2. Area and Perimeter of a Square
Algorithm:
1. Start
2. Input side
3. Stop
3. Area and Perimeter of a Rectangle
Algorithm:
1. Start
2. Input length and breadth
3. Area = length × breadth
4. Perimeter = 2 × (length + breadth)
5. Display Area and Perimeter
6. Stop
4. Area and Perimeter of a Circle
Algorithm:
1. Start
2. Input radius
3. Area = 3.14 × radius × radius
4. Perimeter = 2 × 3.14 × radius
5. Display Area and Perimeter
6. Stop
5. Cube of a Given Number
Algorithm:
1. Start
2. Input number
3. Cube = number × number × number
4. Display Cube
5. Stop
6. Simple Interest
Algorithm:
1. Start
2. Input principal (P), rate (R), and time (T)
3. SI = (P × R × T) / 100
4. Display Simple Interest
5. Stop
7. Smallest of Two Numbers
Algorithm:
1. Start
2. Input A and B
3. If A < B, then Display A is smaller
4. Else, Display B is smaller
5. Stop
8. Age Check for Eligibility
Algorithm:
1. Start
2. Input age
3. If age ≥ 18, Display "Eligible for Role"
4. Else, Display "Not Eligible"
5. Stop
9. Celsius to Fahrenheit
Algorithm:
1. Start
2. Input Celsius temperature
3. Fahrenheit = (Celsius × 9/5) + 32
4. Display Fahrenheit
5. Stop
10. Fahrenheit to Celsius
Algorithm:
1. Start
2. Input Fahrenheit temperature
3. Celsius = (Fahrenheit − 32) × 5/9
4. Display Celsius
5. Stop
11. Area & Perimeter of Triangle
Algorithm:
1. Start
2. Input base and height
3. Area = 0.5 × base × height
4. Input all three sides a, b, c
5. Perimeter = a + b + c
6. Display Area and Perimeter
7. Stop
12. Compound Interest
Algorithm:
1. Start
2. Input principal (P), rate (R), time (T)
3. CI = P × (1 + R/100)^T − P
4. Display Compound Interest
5. Stop
13. Swap Two Numbers using Temporary Variable
Algorithm:
1. Start
2. Input A and B
3. Temp = A
4. A = B
5. B = Temp
6. Display swapped A and B
7. Stop
14. Find the Sum of Two Numbers Entered
Algorithm:
1. Start
2. Input num1 and num2
3. Sum = num1 + num2
4. Display Sum
5. Stop
18. Sum of First 50 Numbers
Algorithm:
1. Start
2. Initialize sum = 0, i = 1
3. Repeat while i ≤ 50
a. sum = sum + i
b. i = i + 1
4. Display sum
5. Stop
20. Arrange X, Y, Z in Descending Order
Algorithm:
1. Start
2. Input X, Y, Z
3. Use comparison to check and arrange the order
4. Display values in descending order
5. Stop
21. Find HCF of Two Numbers
Algorithm:
1. Start
2. Input A and B
3. While B ≠ 0
a. Temp = B
b. B = A % B
c. A = Temp
4. HCF = A
5. Display HCF
6. Stop
22. Check if Number is Even or Odd
Algorithm:
1. Start
2. Input N
3. If N % 2 = 0, Display "Even"
4. Else, Display "Odd"
5. Stop
24. Check if Temperature is Below/Above Freezing Point
Algorithm:
1. Start
2. Input temperature
3. If temperature < 0, Display "Below Freezing Point"
4. Else, Display "Above Freezing Point"
5. Stop
25. Check if Student Passed the Exam
Algorithm:
1. Start
2. Input marks
3. If marks ≥ 40, Display "Passed"
4. Else, Display "Failed"
5. Stop