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
What is use of #include in c?
What is external variable in c?
What is quick sort in c?
Write a program to swap two numbers without using third variable in c?
Do pointers need to be initialized?
What is operator promotion?
Write a program to find factorial of a number using recursive function.
write a program to copy the string using switch case?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
diff between exptected result and requirement?
what do the 'c' and 'v' in argc and argv stand for?
What is mean by data types in c?
What tq means in chat?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none