Website Design United States, Website Design California, Website Designing United States, Website Designing California

Decimal to Binary - METHOD 1 - C++

Converts Decimal to Binary using itoa(). Does not even require the coder to know how the conversion is to be done. METHOD 1

#include <iostream.h>
#include <conio.h>
#include <stdlib.h>

void main()
{
int i=23;
char c[23];
clrscr();
cout<<"Enter any Number in Decimal to be converted in Binary\n";
cin>>i;
cout<<itoa(i,c,2);
getch();
}

WEB DESIGN INDIA
42 B Malviya Nagar , New Delhi-110017

Skype: manmeetsi
Email: support.webdesignindia@gmail.com
Tel: 91-011-40502005, 9810067295

 















 


© 2008-2009 dotnet4all.com