Array Programs
P-1) Write a program to input 10 numbers into an integer array and find the sum of all numbers in it.
P-2) Write a program to input 10 numbers into an integer array and find the sum of even and odd
numbers separately.
P-3) Write a program to input 10 numbers into an integer array and find the sum of prime numbers
only.
P-4) Write a program to input 10 numbers into an integer array and find the position of the largest and
the smallest number.
P-5)
P-6)
P-7)
Array Programs
P-1) Write a program to input 10 numbers into an integer array and find the sum of all numbers in it.
P-2) Write a program to input 10 numbers into an integer array and find the sum of even and odd
numbers separately.
P-3) Write a program to input 10 numbers into an integer array and find the sum of prime numbers
only.
P-4) Write a program to input 10 numbers into an integer array and find the position of the largest and
the smallest number.
P-5)
P-6)
P-7)