Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int BinaryGray(intx);//prototipo
- int ingresaNum();//prototipo
- int BinaryGray(int x){
- x=x^(x>>1);
- return x;
- }
- int ingresaNum(){
- int x=0;
- printf("Ingrese numero\n");
- scanf("%d",&x);
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement