Presentation is loading. Please wait.

Presentation is loading. Please wait.

NOR ZALINA ISMAIL FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES1

Similar presentations


Presentation on theme: "NOR ZALINA ISMAIL FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES1"— Presentation transcript:

1 NOR ZALINA ISMAIL FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES1
LAB SESSION 2 – CSC 138 NOR ZALINA ISMAIL FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES1

2 Question Write a program to initialize the number given into an array. Given numbers: 10, 4,3,72,5,19 From the array: Display the minimum numbers Display the average of the numbers in the array Display the count of numbers is less than 10 Display the count of numbers is even number Hint : to initialize value in the array: int num[6]={10, 4,3,72,5,19}; Or int num[ ]={10, 4,3,72,5,19}; ---- the array size is allow to be blank if there is an initialize value given.

3 Question 2 Write 4 functions: Min Number( ) DisplayAve ( )
DisplayLess10( ) Display Even( )


Download ppt "NOR ZALINA ISMAIL FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES1"

Similar presentations


Ads by Google