Ques-01 Write a C++ function that checks whether an integer is odd or even. If the integer is odd, print "Odd"; otherwise, print "Even."
Sample Input:
Enter a number: 5
Sample Output:
Odd
Ques-02 Write a C++ function that takes a string as input and reverses it.
Sample Input:
Enter a string: CipherSchools
Sample Output:
Reversed string: sloohcSrehpiC
Ques-03 Write a C++ function that takes a string as a parameter and checks how many vowels and consonants are in that string.
Assuming that string contains only lowercase.
Sample Input:
Enter a string: cipherschools
Sample Output:
Number of vowels: 4
Number of consonants: 9