C++ Lab4
C++ Lab4
2. Create a program to find the largest of three numbers using nested if.
4. Create a program that assigns a grade based on marks entered by the user.
6. Create a program that uses a switch statement to display a day of the week.
7. Write a program that prints whether a character is a vowel or consonant using if and switch.
8. Create a program that reads an integer and displays whether it's a prime number.
9. Write a program that determines the eligibility for voting based on age.
10. Create a program that reads a number and checks if it's divisible by 5 and 11.
11. Write a program to print "Pass" if marks are greater than 50 using if condition.
12. Create a program that calculates a discount on a product price based on conditions.
14. Create a program that prints "Valid" if the input is between 1 and 100, otherwise "Invalid".
16. Create a program that reads an integer and checks if it's a perfect square.
17. Write a program to print the day of the week using a switch statement.
18. Create a program that uses a switch statement to calculate an arithmetic operation.
19. Write a program that asks for a month number and displays the number of days.