manchester technique with c programming. (WITH OUTPUT IMAGE)


#include<stdio.h>
#include<conio.h>

void main()
{ int i;
  char *a;
  printf("enter a  bit");
  scanf("%s",a);
  clrscr();
  i=0;
  while(*(a+i)!='\0')
  {
    if(*(a+i)=='1')
    {
     printf("-11 \t");

  }
  else
  {

    printf("1-1 \t");
  }



i++;
  }
getch();
}

Comments