Assignment 2
1. Write a program to check whether a number is positive, negative, or zero.
2. Write a program to check whether a person is eligible to vote (age ≥ 18).
3. Write a program to find the largest of two numbers.
4. Write a program to find the largest of three numbers.
5. Write a program to check whether a year is a leap year or not.
6. Write a program to check whether a number is divisible by both 5 and 11.
7. Write a program to assign grades based on marks:
Marks ≥ 90 → Grade A
Marks ≥ 75 → Grade B
Marks ≥ 50 → Grade C
Marks < 50 → Fail
8. Write a program to check whether a character is:
Alphabet
Digit
Special character
9. Write a program to create a simple calculator:
Take two numbers and an operator (+, -, *, /)
Perform the corresponding operation
10. Write a program to determine the type of triangle based on side lengths:
Equilateral
Isosceles
Scalene