Skip to content

singhharshitt/Day05

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Day05



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



About

Cipher School C++ Questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages