Kizspy.me
ss any key to continue . . .
Question 2:
(1 mark, file to be edited: Q2.c)
Your program allows the user to enter an array of 'n' integer numbers, where 'n' is entered from the
keyboard (STDIN).
Program to print the even numbers sorted in ascending order. There is a newline character \n' between
any two printed numbers.
Below is an example when 'n' = 6; elements: (2, -4, 5, 8, 15, 0)
2-4 5 8 15 0
OUTPUT:
-4
Press any key to continue...
Question 3:
(1 mark, file to be edited: Q3.c)
Write a program that prints the first n numbers of the Fibonacci series, with n entered by the user from
keyboard.
* The Fibonacci sequence is the series of numbers where each number is the sum of the two preceding
numbers. For example: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377,...
Below is an example of how the program will run:
INPUT:
10
OUTPUT:
0 1 1 2 3 5 8 13 21 34
Zoom
100%
Close