answersLogoWhite

0

#include <stdio.h>

#include<conio.h>

#include<process.h>

#include <string.h>

#include <stdlib.h>

#define pf printf

void main()

{

int a[],b[],i,len,j;

clrscr();

pf("\nenter the binary number:");

gets(a);

len=strlen(a);

for(i=0;i<len;i++)

{

if(a[i]==0a[i]==1)

continue;

else

{

pf("\nenter correctly");

exit(0);

}

strcpy(b,a);

for(

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you wrte aC program in Linux?

OK. Done that


How to write aC program to merge two singly linked list?

write a c program to circular queue


Who is ac the program director?

DJ A.C. The Program Director is the author and founder of HipHopPhilosophy.com, HipHopPhilosophy.com Radio, and HipHopPhilosophy.com Radio clothing.


What are the 5 examples of s-tv-do-ac pattern sentence?

The S-TV-DO-AC pattern consists of a subject (S), a transitive verb (TV), a direct object (DO), and an adverbial complement (AC). Here are five examples: The chef (S) cooked (TV) a delicious meal (DO) in the kitchen (AC). The teacher (S) assigned (TV) homework (DO) for tomorrow (AC). The dog (S) chased (TV) the ball (DO) across the yard (AC). The artist (S) painted (TV) a beautiful mural (DO) on the wall (AC). The manager (S) gave (TV) the team (DO) a new project (AC).


AC Moore?

form_title= AC Moore form_header= Find all your crafting supplies at AC Moore. What type of project are you creating?*= _ [50] What supplies do you need?*= _ [50] Are you a part of the rewards program?*= () Yes () No


How do you wrte ac programe for factorial?

#include &lt;stdio.h&gt; int main() { int fact=1,num; printf("Enter number: "); scanf("%d",&amp;num); if((num==0) (num==1)) { printf("Factorial = %d",fact); return 0; } else { while(num!=1) { fact=fact*num; num--; } printf("Factorial = %d",fact); return 0; } }


What does AC sand for?

AC means AFTER CHRIST AC is what your living in wright now.Like 2011 is AC.


What does ac mean in the team name ac Milan?

AC in AC milan stands for Assosiation Calcio Milan AC in AC milan stands for Assosiation Calcio Milan


Which is best ac?

the best ac game is ac brotherhood


What is the compressor on a 2001 Dodge Ram?

The ac compressorThe ac compressor


How much is a 1966 Chelsea vs. Milan AC Intercities Fairs Cup third-round second leg program in mint condition worth?

peanuts, around &pound;2-&pound;3


How do I re-download the program for battery calibration and maximize battery on Compaq Presario 2100?

remove the battery and plug the power supply You mean running on AC power without a battery?