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

Algorithm Practice

The document outlines a series of algorithms for various mathematical and logical operations. These include calculating the area of a rectangle, determining student pass/fail status based on marks, computing simple interest, checking voting eligibility and senior citizen status, generating multiplication tables, summing digits, checking for palindromes, generating Fibonacci series, finding square roots, and calculating HCF and LCM of two numbers.

Uploaded by

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

Algorithm Practice

The document outlines a series of algorithms for various mathematical and logical operations. These include calculating the area of a rectangle, determining student pass/fail status based on marks, computing simple interest, checking voting eligibility and senior citizen status, generating multiplication tables, summing digits, checking for palindromes, generating Fibonacci series, finding square roots, and calculating HCF and LCM of two numbers.

Uploaded by

dishari.mail
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Write an algorithm to calculate the area of a rectangle when length


and breadth are given.
2. Write an algorithm to input a student's marks and print:
 "Pass" if marks ≥ 40
 "Fail" if marks < 40
3. Write an algorithm to calculate the simple interest when principal,
rate, and time are given.
4. Write an algorithm to determine if a person is eligible to vote (age ≥
18) and also check if they are a senior citizen (age ≥ 60).

5. Write an algorithm to print the multiplication table of a number.


6. Write an algorithm to find the sum of digits of a number.
7. Write an algorithm to check if a number is a palindrome.
8. Write an algorithm to generate the Fibonacci series up to n terms.
9. Write an algorithm to find the square root of a number.
10. Write an algorithm to find the HCF and LCM of two numbers.

You might also like