Practical Questions
1. Write a program to swap two numbers using a third variable.
2. Write a program to calculate the area of a rectangle using variables.
3. Write a program to find the average of three numbers.
4. Write a program to concatenate two strings using variables.
5. Write a program to calculate the total and percentage of marks obtained in 5 subjects.
6. Write a program to demonstrate the use of integer, float, char, string, boolean data types.
7. Write a program to create calculator
8. Write a program to check if a number is positive, negative, or zero.
9. Write a program to check if a number is even or odd.
10. Write a program to find the largest of two numbers.
11. Write a program to check if a person is eligible to vote.
12. Write a program to check if a character is a vowel or consonant.
13. Write a program to print numbers from 1 to 10 using for loop.
14. Write a program to print numbers from 10 to 1 using a while loop.
15. Write a program to print the multiplication table of a number using a for loop.