Write a C program that will print the odd number from 3 to 33 using a recursive function named “printOdd”.
Answers
Answered by
1
Answer:
#include<stdio.h>
printodd(int n);
void main()
{
int num=1;
printOdd(num);
getch();
}
printodd(int n)
{
int odd;
if (n==35)
return;
else
printf("%d", n);
odd= printodd(n+2);
}
Similar questions