pasar a binario recursivo
//imprime por pantalla el equivalente binario de n
int pasarBinario(int n){
int bin;
if(n < 2){ //significa que el numero es 0 o 1
bin = n;
}else{
bin = (n % 2) + (10 * pasarBinario(n/2));
}
printf("bin: %d\n", bin);
return bin;
}
Also in C:
- latex noindent
- how to get random numbers in c
- how to get a lonng in scanf in c
- arduino client disconnect
- cloudflare dns
- mirzapur 2 release date and time
- hello world program
- C typedef
- calloc
- how to combine strings in c
- convert list of strings to string
- Write a c code to create a data base of students using structure. The member variables are roll, grade, and marks. Create 3 structure variable of 3 different roll numbers and find out the roll number of the student who is having highest marks.
- c return
- grep with color highlight
- WARNING: QA Issue: rdepends on
- c switch
- how to find the ith row of pascal's triangle in c
- Declaring Variables in C
- c isdigit function
- cv2.solvepnpransac too many values to unpack
- how to create an array of char in c++
- c rand range
- mariadb unknown collation: 'utf8mb4_0900_ai_ci'
- declare integer c