Exercise Questions: 1D - Arrays / List

Exercise based on number collections, In C-Language we use arrays, and in Python use List to solve these programs.

  1. WAP to input 10 numbers and find sum.
  2. Solution: C

  3. WAP to input 10 numbers and find average.
  4. Solution: C

  5. WAP to input 10 numbers in array and find largest number.
  6. Solution: C

  7. WAP to input 10 numbers in array and find smallest number.
  8. Solution: C

  9. WAP to input 10 numbers in array and find sum of odd and even numbers separately.
  10. Solution: C

  11. WAP to input 10 numbers in array and reverse the array list.
  12. Solution: C

  13. WAP to input 5 numbers in 2 different arrays and Merge it in sorted order. Assuming that input numbers are already in sorted order.
  14. Solution: C

  15. WAP to input 5 numbers in 2 different arrays and Merge it uniquely.
  16. Solution: C

  17. Create a menu with the following options: 1-Insert, 2-Delete, 3-Update, 4-Search an element in an array.
  18. WAP that splits an array into odd and even numbers separately.
  19. Find factorial of each number stored in array.
  20. WAP to convert input number in words. eg: Input: 518, Output: Five Hundred Eighteen.