CPP program to check that the entered character is small, capital or a special character

C++/CPP program to check that the entered character is small, capital or a special character?

Logic of the program

If in the program, Ascii_value_Variable>=97 && Ascii_value_Variable<=122, then the character is small.

If in the program, Ascii_value_Variable>=65 && Ascii_value_Variable<=90, then the character is capital.

If in the program, Ascii_value_Variable>=0 && Ascii_value_Variable>=47 || Ascii_value_Variable>=54 && Ascii_value_Variable<=64 || Ascii_value_Variable>=91 && Ascii_value_Variable<=96 || Ascii_value_Variable>=123 && Ascii_value_Variable<=127,then the character is a special character.

If in the program, Ascii_value_Variable>=47 && Ascii_value_Variable<=57,then it means that you have entered a digit.

Program

.

Fazal Rehman Shamil
Welcome to all friends. The reason for our success is only your love for T4Tutorials. Our team is always available to answer your queries regarding any kind of confusions or discussion regarding your study and career matters. For discussion with us please join our facebook group "T4Tutorials.com". The link of the group is mentioned below. Thanks and love to all for connecting with us. We are nothing without you. Love you all.....
https://web.facebook.com/groups/2066136233601097/

Leave a Reply