Java Array Programs
- Write a Program to input 10 numbers into an integer array and find the sum of all number in it.
- Write a Program to input 10 numbers into an integer array and find the sum of even and odd number separately.
- Write a Program to input 10 numbers into an integer array and find those numbers which are less then its average.
- Write a Program to input 10 numbers into an integer array and find the sum of prime numbers only.
- Write a Program to input 10 numbers into an integer array and check whether all numbers are 3 digit number or not.
- Write a Program to input 10 numbers into an integer array and check whether all numbers are same number or not
- Write a program to input 10 number into an integer array and check weather they are in ascending order or not.
- Write a program to input 10 number into an integer array and find the position of largest & smallest number.
- Write a program to input 10 number into an integer array and interchange the largest number with the smallest number within the array and print the modified array. Assume that there is only one largest & smallest number.
No comments