What's New-Given Below
technicalsymposium
technicalsymposium
technicalsymposium

C/C++ Lab Program(s)/Materials

C Program For BINARY TO DECIMAL.

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int s=0,z=0,n,t;
clrscr();
printf("Enter the n value");
scanf("%d",&n);
while(n>0)
{
t=n%10;
s=s+(t*pow(2,z++));
printf("s=%d\n",s);
n=n/10;
}
printf("given number is=%d",s);
getch();
}

More Lab Programs with Answers -Given Below-Click and Get Freely

Hosting by Yahoo!

About-Us    Contact-Us    Site-map

©copyright 2009 All rights are reserved to technicalsymposium.com