0% found this document useful (0 votes)
3 views4 pages

11 - C Basics - Revision 3

The document outlines various C programming exercises including converting decimal numbers to binary, displaying prime numbers, calculating Fibonacci numbers, and working with arrays and recursion. It provides specific tasks such as printing even numbers from an array and calculating the factorial of a number. A link to sample code is also provided for reference.

Uploaded by

rosahshhsh
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)
3 views4 pages

11 - C Basics - Revision 3

The document outlines various C programming exercises including converting decimal numbers to binary, displaying prime numbers, calculating Fibonacci numbers, and working with arrays and recursion. It provides specific tasks such as printing even numbers from an array and calculating the factorial of a number. A link to sample code is also provided for reference.

Uploaded by

rosahshhsh
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/ 4

C Basics

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.

Link to code: https://ideone.com/YKl0nS


• Write C program to get n numbers in array, and
print even numbers of them separated by space.
The print the sum of first m numbers from
them.
• Write a program in C to convert decimal number
On arrays & to binary number using arrays.
recursion • Write a program to print the array elements
using recursion.
• Write a program to find the Factorial of a
number using recursion.
Next

You might also like