ASCII codes for characters and numbers in C++

ASCII means American Standard Code for Information Interchange(a character encoding scheme means uppercase letters(A-Z), lowercase letters(a-z), special symbols($,&,#,@).


It control characters to the numbers ranging from 0-225.



  int main()


      char cha;


      cout<<"Enter any character";


      if(cha>=48 && cha<=57)

      cout<<"  digit (number 0-9)"<<endl;


      else if(cha>=65 && cha<=90)

      cout<<"  capital A-Z"<<endl;


      else if(cha>=97 && cha<=122)

      cout<<" small a-z"<<endl;


      cout<<endl<<" special (@#$*) character";


      return 0;



ASCII codes

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @