Printing the Decimal of Octal/Hexa decimal/Binary

Input:


#include<bits/stdc++.h>
#define s std::
#define pi acos(-1)

int main()
{
 int x=014;
 int y=0x34;
 int bin=0b11;
 s cout<<"Octal "<<x<<"\nHexa decimal "<<y<<"\nBinary "<<bin<<s endl;
}

Output:


Octal 12
Hexa decimal 52
Binary 3

Process returned 0 (0x0)   execution time : 0.050 s
Press any key to continue.


মন্তব্যসমূহ

এই ব্লগটি থেকে জনপ্রিয় পোস্টগুলি

C++ Class