- Write a program using functions to find the average of three numbers.
- Write a function to convert
Celcius
temperature intoFahrenheit
. - Write a function to calculate the force of attraction on a body of mass
m
exerted by earth. (g=9.8m/S2) - Write a program using recursion to calculate the nth element of the Fibonacci series.
- What will the following line produce in a C program:
printf(“%d %d %d\n”,a,++a,a++);
- Write a recursive function to calculate the sum of first
n
natural numbers. - Write a program using functions to print the following pattern(first
n
lines):* *** *****
Files
Failed to load latest commit information.
Chapter 05 — Functions and Recursions
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||