C Programming - Assignment 9

 Assignment -9 

-------------------------

All the programs in this assignment are based on the concept of Arrays.

[ There are 16 questions in this assignment ]

  1. Write program to create an integer array and initialize it with some values
  2. Write a program  to input 10 values in an array and print the 6th value 
  3. write a program to input 10 values in an array and find the sum of first and last values
  4. Write a program to input 10 values in an array and print the values
  5. Write a program to input 10 values in an array and print the values in reverse
  6. Write a program to input 10 numbers in an array and print all the even values of this array
  7. Write a program to input 10 numbers in an array and print all the odd values of this array.
  8. Write a program to input 10 values in an array and print the sum of all values of the array
  9. Write a program to input 10 values in an array and print the sum of only odd values
  10. Write a program to input 10 values in an array and print the sum of all odd values
  11. write a program to input 10 values in an array and print all the values which are at odd positions
  12. Write a program to input 10 values in an array then increase first five values by 2 and last 5 values by 3
  13. Write a program to input 10 values in an array and then increase all the odd values by 1.
  14. Write a program to enter 10 values and increase each alternate value with 2.
  15. Write a program to enter 10 values in an array and displays those values which are divisible by 2 but not divisible by 3
  16. Write a program to enter 10 values in an array and then replace all even place value with its previous odd place value.

Comments