0% found this document useful (0 votes)
25 views1 page

Practice - Control Structure & Functions

Uploaded by

The Priest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Practice - Control Structure & Functions

Uploaded by

The Priest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment 3

1. Write a program to find the second maximum among three numbers.


2. Write a program to to print the day of the week as per the given number
by the user from 1 to 7, display an error message to if given value is out
of the range.
3. Calculate factorial of a number by calling a function
4. Print a Fibonacci series for N terms using a function.
5. Define a function that receives 3 integer arguments and returns the max value.
6. Calculate factorial of a number by calling a recursive function

You might also like