DEV Community

Mohammed Salah
Mohammed Salah

Posted on

C++25th Code ( ASCII Character)

    #include<iostream>
    using namespace std; 
    int main()
    {
char a; 
cout<<"\n\t Enter an English  Capital or Small letter : "; 
cin>>a;
cout<<"\n\t The ASCII Code = "; 
cout<<int(a)<<endl; 
int x ; 
cout<<"\n\t Enter an number from Ascii table to obtain The  
    symbole : " ; 
cin>>x ; 
cout<<"\n\t You have Entered number = ("<<x<<") Wich Equal --> 
    "<<char(x)<<endl; 
cout<<"\n"<<endl;
cin.get();
cin.get();
cin.get();
system("pause");
system("pause");
system("pause");
return 0 ; 
    }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)