Exercise questions 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 2nd largest and 2nd smallest number.
- WAP to input 10 numbers in array and find sum of odd and even numbers separately.
Solution: C
- WAP that splits an array into odd and even numbers separately.
- WAP to input 10 numbers in array and reverse the array list.
Solution: C
- WAP to Input 10 numbers in array and reverse the array list without using another array.
- 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
- WAP to input 5 numbers in 2 different arrays and Merge it in sorted order. Assuming that input numbers are not in sorted order.
- Create a menu with the following options: 1-Append, 2-Insert, 3-Search, 4-Update, 5-Delete, 6-Sorting, 7-Reversing an element in an array.
- Find factorial of each number stored in array.
- WAP to convert input number in words. eg: Input: 518, Output: Five Hundred Eighteen.