Exercise based on number collections, In C-Language we use arrays, and in Python use List to solve these programs.
- WAP to input 10 numbers and find sum.
Solution: C
- WAP to input 10 numbers and find average.
Solution: C
- WAP to input 10 numbers in array and find largest number.
Solution: C
- WAP to input 10 numbers in array and find smallest number.
Solution: C
- WAP to input 10 numbers in array and find sum of odd and even numbers separately.
Solution: C
- WAP to input 10 numbers in array and reverse the array list.
Solution: C
- WAP to input 5 numbers in 2 different arrays and Merge it in sorted order. Assuming that input numbers are already in sorted order.
Solution: C
- WAP to input 5 numbers in 2 different arrays and Merge it uniquely.
Solution: C
- Create a menu with the following options: 1-Insert, 2-Delete, 3-Update, 4-Search an element in an array.
- WAP that splits an array into odd and even numbers separately.
- Find factorial of each number stored in array.
- WAP to convert input number in words. eg: Input: 518, Output: Five Hundred Eighteen.