technicalsymposium

Google Search-Search in Our Website

Search Freshers Jobs/Conferences/Placement Materials/ All Engineering Branches Lecture Notes and
GATE/All Universities Question Papers in Our Website. Enter your Query & Search Below

Programming Codes with Answers

C Program For DECIMAL TO BINARY.

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n,z=0,i,a[20];
clrscr();
printf("Enter the n value");
scanf("%d",&n);
while(n>0)
{
a[z]=n%2;
z++;
n=n/2;
}
for(i=z;i>=0;i--)
{
printf("%d",a[i]);
}
getch();
}

Hosting by Yahoo!

About-Us    Contact-Us    Site-map

©copyright 2009 All rights are reserved to technicalsymposium.com