Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Write an algorithm and program to do the following

1. To find the ASCII value of a character

2. To swap two numbers

3. To check whether a number is odd or even

4. To check whether a character is vowel or consonant

5. To find the roots of a quadratic equation

6. To check whether a year is a leap year

7. To check whether a number is positive or negative

8. To display the Fibonacci sequence upto n terms

9. To display the factors of a number

10. To find the power of a number without using the pow function

11. To find GCD of two numbers

You might also like