11 - C Basics - Revision 3
11 - C Basics - Revision 3
11 - Revision 3
/AhmedHatemS
/c/AhmedHatemS
• Write a program in C to convert decimal number
to binary number using the function.
• Write a C program that displays all prime
numbers between two Intervals using functions
(check in function, print in main).
On functions • The Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, 21, …
begins with the terms 0 and 1 and has the
property that each succeeding term is the sum
of the two preceding terms. Write a function
Fibonacci(n) that calculates the nth Fibonacci
number.