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
Which header file is used for clrscr?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Is null always equal to 0(zero)?
Why c is called free form language?
Explain main function in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is volatile keyword in c?
What are the advantages of using linked list for tree construction?
What are the back slash character constants or escape sequence charactersavailable in c?
How can I find the modification date and time of a file?
What is the significance of scope resolution operator?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Explain what is the difference between text files and binary files?
How can I split up a string into whitespace-separated fields?
Explain what is the heap?