3110003AssignmentComputer Science & EngineeringAssignment-01
3110003AssignmentComputer Science & EngineeringAssignment-01
Affiliated
S. N. PATEL INSTITUTE OF TECHNOLOGY & RESEARCH
CENTRE, UMRAKH
ASSIGNMENT 1 [CO 1]
ASSIGNMENT 2 [CO 2]
Q.1. Write a C-program to find the largest of the three nos. using nested-if-else statement.
Q.2. Write difference between Entry-Controlled Loop and Exit-Controlled Loop.
Q.3. Explain about switch statement with example.
Q.4. Write a program to evaluate the series 1^2+2^2+3^2+……+n^2
ASSIGNMENT 4 [CO 4]
What is function? Explain the function definition, function prototype and function call with
Q.1.
example.
Q.2. List out the categories of functions of C. Explain any one category with example.
Q.3. Write a C-program using function to swap 2 numbers.
Q.4. Write a C-program to find factorial of a given number using recursion.
ASSIGNMENT 5 [CO 5]