Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Jan 18, 2021
Embed
What would you like to do?
#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
int main(){
int number = ' ';
cout<<"White Space :"
<<number<<endl;
char ch;
string prompt = "\n Please enter a character :";
cout<<prompt;
cin>>ch;
number = ch;
cout<<"The Character "<<ch
<<"has code "<<number<<endl;
cout<<uppercase
<<" Octal Decimal Hexadecimal "
<<oct<<setw(8)<<number
<<dec<<setw(8)<<number
<<hex<<setw(8)<<number<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment