Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the binary of a number?

Answer Posted / subhashini

#include<stdio.h>
#include<conio.h>
{
clrscr();
int i,sum,n;
printf("enter the number");
scanf("%d",&n);
while(n>=1)
{
i=n%2;
sum=sum*10+i;
n=n/2;
getch();
}
printf("the binary number is: %d",i)

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a const pointer in c?

1073


What is static memory allocation? Explain

1032


What is the main difference between calloc () and malloc ()?

1095


Explain how do you override a defined macro?

1018


How can you pass an array to a function by value?

1055


Explain what does the format %10.2 mean when included in a printf statement?

1289


hi send me sample aptitude papers of cts?

2105


What is a struct c#?

998


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1650


How can I use a preprocessorif expression to ?

994


program for reversing a selected line word by word when multiple lines are given without using strrev

2420


How do you print only part of a string?

964


what do the 'c' and 'v' in argc and argv stand for?

1114


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1026


How can you convert integers to binary or hexadecimal?

977