Lab 07
Lab 07
LAB 7
PREPARED BY
Section 6B
Reg. No FA21-BEE-001
TASK 1
#include<stdio.h>
#include<string.h>
#include<stdbool.h>
} int
main()
{
TASK 2
#include<stdio.h> #include<string.h>
#include<stdbool.h>
int rem;
rem = x%y;
if(rem==0)
return y;
else
return 0;
}
Conclusion:
In this I have understand the basics of recursive functions how it implement in program
and know how its work. I have also taught how to convert an iterative solution to a
problem to its recursive counterpart. I learn how to understand the advantages and
disadvantages of recursion. I complete this lab using different concepts of DSA including
recursion and iteration.