múltiplos entre dos numeros en c
C
#include <stdio.h>
//recibe dos enteros n y b e imprime por pantalla los multiplos de b que hay
//entre 1 y n
void multiplos(int n, int b){
if(n >= b){
if(n % b == 0){
multiplos(n - b, b);//si quiero que se imprima en el otro orden, poner esto debajo del printf
printf("%d\n", n);
}else{
multiplos(n - 1, b);
}
}
}
int main(){
multiplos (6, 2);
return 0;
}
Also in C:
- Title
- multiplicacion recursiva
- Category
- C
- Title
- c print array
- Category
- C
- Title
- pangram program in c
- Category
- C
- Title
- how to use ? in c
- Category
- C
- Title
- primo
- Category
- C
- Title
- múltiplos entre dos numeros en c
- Category
- C
- Title
- arduino knn
- Category
- C
- Title
- turn a char array into double C
- Category
- C
- Title
- code in c skipping over scanf
- Category
- C
- Title
- first person view unity
- Category
- C
- Title
- scanf read line
- Category
- C
- Title
- how to print a file c
- Category
- C
- Title
- how to declare 2 d array using malloc
- Category
- C
- Title
- How to make a printf in c
- Category
- C
- Title
- how to do Employing defensive code in the UI to ensure that the current frame is the most top level window
- Category
- C
- Title
- qtableview get selected row
- Category
- C
- Title
- how to rebasde
- Category
- C
- Title
- simpy process return value
- Category
- C
- Title
- what is size_t in c
- Category
- C
- Title
- how to check the size of a file in linux c
- Category
- C
- Title
- factorial of a given number in c
- Category
- C
- Title
- how to download file in powershell
- Category
- C
- Title
- mitch mcconnell
- Category
- C
- Title
- latex font sizes
- Category
- C
- Title
- How to setup a line length marker in vim
- Category
- C
- Title
- Docker error Error response from daemon: conflict: unable to remove repository reference
- Category
- C
- Title
- stack
- Category
- C
- Title
- how to check the size of a file c
- Category
- C
- Title
- passing 2d array as parameter to function in c
- Category
- C
- Title
- maximo comun divisor
- Category
- C
- Title
- measure time in c
- Category
- C
- Title
- use of matplotlib inline
- Category
- C
- Title
- infinite loop using while
- Category
- C
- Title
- matrix c declaration
- Category
- C
- Title
- get regedit value cmd
- Category
- C
- Title
- c vs python
- Category
- C
- Title
- 'int' is not a subtype of type 'double' dart
- Category
- C
- Title
- update ubuntu in terminal
- Category
- C
- Title
- write in file in c
- Category
- C
- Title
- slug urls django
- Category
- C
- Title
- variadic function in c
- Category
- C
- Title
- buscar caracter
- Category
- C
- Title
- Declaring Variables in C
- Category
- C
- Title
- pass the pointer in C
- Category
- C
- Title
- if statement shorthand c
- Category
- C
- Title
- find gcd iteratively
- Category
- C
- Title
- declaring a volatile in c
- Category
- C
- Title
- how to make a linked list in c
- Category
- C
- Title
- division recursiva
- Category
- C
- Title
- fibonacci in c
- Category
- C
- Title
- printf n characters c
- Category
- C
- Title
- c matrix sintax
- Category
- C
- Title
- c array
- Category
- C
- Title
- uninstall elgg from hostgtor
- Category
- C
- Title
- piramide
- Category
- C
- Title
- how to mutex lock in c
- Category
- C
- Title
- kadane's algorithm
- Category
- C
- Title
- insertion sort
- Category
- C
- Title
- c print hello world
- Category
- C
- Title
- pop and push shows black screen which needs to be pressed back flutter
- Category
- C
- Title
- c struct
- Category
- C
- Title
- how to open a website in c
- Category
- C
- Title
- atoi
- Category
- C
- Title
- error: ‘cout’ was not declared in this scope
- Category
- C
- Title
- c zero out array
- Category
- C
- Title
- print variable c
- Category
- C
- Title
- random en c
- Category
- C
- Title
- c
- Category
- C
- Title
- curl post request
- Category
- C
- Title
- router solicitation and advertisement magic is used by
- Category
- C
- Title
- for loop in c
- Category
- C
- Title
- arduino define
- Category
- C
- Title
- heitai bestial
- Category
- C
- Title
- CL/cl.h: No such file or directory
- Category
- C
- Title
- hello world
- Category
- C
- Title
- 'keras.backend' is not a package
- Category
- C
- Title
- c defined value sum
- Category
- C
- Title
- how to use a pointer as a parameter in c
- Category
- C
- Title
- xamarin command listview button
- Category
- C
- Title
- ordenar un vector
- Category
- C
- Title
- how to feed a char array to function in C
- Category
- C
- Title
- passing 'const char *' to parameter of type 'char *' discards qualifiers
- Category
- C
- Title
- code: 'EADDRINUSE', [0] errno: 'EADDRINUSE', [0] syscall: 'listen', [0] address: '::', [0] port: 5000
- Category
- C
- Title
- strtok
- Category
- C
- Title
- read files in c
- Category
- C
- Title
- c pause for 1 second
- Category
- C
- Title
- File "h5py\h5g.pyx", line 161, in h5py.h5g.create ValueError: Unable to create group (name already exists)
- Category
- C
- Title
- how to get random numbers in c
- Category
- C
- Title
- install postgres on linux
- Category
- C
- Title
- write array of char to file in c
- Category
- C
- Title
- get a remote branch git
- Category
- C
- Title
- ImportError: No module named 'skimage'
- Category
- C
- Title
- Gemfile.lock`. It is likely that you need to grant write permissions for that path.
- Category
- C
- Title
- accessing elements 2D array using pointers
- Category
- C
- Title
- csrf_exempt
- Category
- C
- Title
- what is x:Name Xamarin forms
- Category
- C
- Title
- does strcat null terminate
- Category
- C
- Title
- C largest unsigned int
- Category
- C
- Title
- stack implementation
- Category
- C
- Title
- command line coursera
- Category
- C