C program to print capital letters

C program to print capital letters

Output:

Enter the string to find capital letters in it:
CodeRegister
The capital letters in the string are:
C R

Implementation: