answersLogoWhite

0


Best Answer

#include<stdio.h>

void main()

{

int n;

clrscr();

printf("enter a no.");

scanf("%d",&n);

if(n%10==0n%10==1)

printf("yes binary");

else

printf("not binary");

getch();

}

}

User Avatar

Wiki User

โˆ™ 2013-03-06 20:41:21
This answer is:
User Avatar
Study guides

Algebra

20 cards

A polynomial of degree zero is a constant term

The grouping method of factoring can still be used when only some of the terms share a common factor A True B False

The sum or difference of p and q is the of the x-term in the trinomial

A number a power of a variable or a product of the two is a monomial while a polynomial is the of monomials

โžก๏ธ
See all cards
3.8
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
1474 Reviews

Add your answer:

Earn +20 pts
Q: Write a c program to check whether a number is binary or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to convert decimal number to binary number?

write a program that will convert decimal to binary


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Write an program that accepts an input as a decimal number and coverts in into binary representation?

write an algoriths/program that accepts an input as a decimal number and converts it into binary representation in c.


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


How do you write a c program to convert binary to decimal using stack?

How do you write a c program to convert decimal no to binary no using stack in c++


How do you write the number 25 in binary?

11001 16 + 8 + 1


How do you write a Turbo C program to determine whether a number is prime or not?

234


Write a c program to convert binary number to decimal number?

How is this a question? Sounds like you should do more of your homework offline.


Write a program to enter a number and check whether number is divisible by 7 or not?

wap to input a number and check whether it is divisible by 7 or no


How would you write the number 200 in binary?

The number 200 written as a binary number is 11001000


Write a VB program for binary search?

dim a as integer


Write a program to check whether the number is divisible by 3?

maa ki aank

People also asked