home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
tybc4
/
out4.cpp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-03-24
|
291 b
|
14 lines
// C++ program which displays octal and hexadecimal integers
#include <iostream.h>
#include <stdio.h>
main()
{
long i;
cout << "Enter an integer : ";
cin >> i;
printf("%ld = %lX (hex) = %lo (octal)\n", i, i, i);
return 0;
}