C++ Program statements using Functions
1. Write a program in which a functions return the sum, subtraction, multiplication furthermore
division (depending at users choice) regarding 2 numbers taken from main.
2. Write a program that prints maximum number among 3 values taken from user.
3. Write a program toward swap the values regarding two integers.
4. Write a function toward check whether the year entered from user is leap or not.
5. Write a function that receives marks regarding 3 students furthermore returns average and Percentage regarding numbers.
6. Write a program that reads five-digits integer furthermore check whether it is a Palindrome.
enter 0 toward exit program
Sample output:
Enter a five digit Number : 11611
11611 is a Palindrome
7. Write a program which check username furthermore password furthermore display Login information is
correct or Not. Show password in asterisks(*)
Sample output:
Enter user name: uog
Enter password: *****
Log in information is Correct !
8. Write a program in which function checks whether character passing from main is capital
or not, if it is capital show that alphabet else first make it capital then show it.
9. Write a program toward calculate Area furthermore perimeter regarding a circle.
10.Write a program toward show sum regarding first n values where n is input from user.
11. An integer is entered through keyboard. Write a program toward find prime factors of the number e.g prime factors regarding 35 are 5 furthermore 7.
12. Write a program that takes 5-digit number from user where one function will
return its reverse furthermore the sum regarding these digits will be calculated using another
function. e.g reverse regarding number 12345 is 54321 furthermore sum regarding digits is 15.
14. Write a function that receives a string furthermore at the end you have toward show how
many capital letters, small letters, integers furthermore symbols it contains. Program
should terminate at pressing esc key.
15. An integer is input through user. Write a program toward show next prime number
of entered number.
C++ Program statements using Functions