Advertisement
CotaIgnorada

libreria

Oct 27th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. int BinaryGray(intx);//prototipo
  3. int ingresaNum();//prototipo
  4.        int BinaryGray(int x){
  5.        x=x^(x>>1);
  6.        return x;
  7.        }    
  8.        int ingresaNum(){
  9.              int x=0;
  10.              printf("Ingrese numero\n");
  11.              scanf("%d",&x);
  12.              return x;
  13.              }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement