Categories

Subscribe via Email

Enter your email address to subscribe and receive notifications of new content by email.

cppoctdechex

Octal / Hexadecimal / Decimal conversion

#include <iostream.h>
#include <iomanip.h> int main()
{
cout<<“The decimal value of 15 is “<<15<<endl;
cout<<“The octal value of 15 is “<<setiosflags(ios::oct)<<15<<endl;
cout<<“The hex value of 15 is “<<setiosflags(ios::hex)<<15<<endl;

return 0;

}

FacebookTwitterGoogle+PinterestTumblrStumbleUponRedditLinkedInWhatsAppBibSonomyDeliciousDiggDiigoSina WeiboWordPressBlogger PostShare

Leave a Reply

  

  

  


*

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>