This programming assignment involves writing recursive functions to calculate a factorial, sum of natural numbers, greatest common divisor (GCD), and power. It also requires storing student information in a structure and displaying it, as well as using a pointer to find the sum of all elements in an array.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
23 views
Programming Assingment-2Team
This programming assignment involves writing recursive functions to calculate a factorial, sum of natural numbers, greatest common divisor (GCD), and power. It also requires storing student information in a structure and displaying it, as well as using a pointer to find the sum of all elements in an array.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Programming Assingment-2 CS105 (21-04-2020)
1: Programming for Recursive functions.
a. WAP to find factorial of a number using recursion b. WAP to find Sum of Natural Numbers Using Recursion c. C Program to Find G.C.D Using Recursion d. C program to calculate the power using recursion
2: Programming for Pointers and structures.
a. WAP to store student information (roll no, name, marks) and display using structure b. WAP to find sum of all elements of an array using pointer