Download presentation
Presentation is loading. Please wait.
Published byJohan Setiabudi Modified over 5 years ago
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( )
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.