Hello this is a simple program with which I explained the recursion, this is the code:
#include <stdio.h>
void funcion1(int a)
{
if(a>3)
{
printf("\nNumero %d",a);
funcion1(a-1);
}
}
int main(void) {
int a=0;
printf("Ingresa un numero: ");
scanf("%d",&a);
funcion1(a);
return 33;
}
as you can see the condition is a > 3 and what I want to know is how to make it restart if a value of 3 or less is entered, I was told that with do while I do not know how to accommodate them in this code.
Greetings:)