C++ programs
1. Write a C++ program to calculate the area and perimeter of a
rectangle using functions.
2. Write a C++ program to display the even numbers between 1 to
100 using a for loop.
3. Write a C++ program to swap the two numbers.
4. Write a C++ program to accept an array of 10 numbers and add
the values of the array and display the output.
5. Write a C++ program to calculate the factorial of a given number.
6. Write a C++ program to check whether the number is positive or
negative.