Computer Science, asked by sahabaz514, 7 months ago

Write a C program that will print the odd number from 3 to 33 using a recursive function named “printOdd”.

Answers

Answered by rasmikrishnan123
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