word taken and got into consideration and thank you very much too much appreciating it so here i tried the code but am not sure that is okay according to the question above..
Code:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner (System.in);
int num[]=new int[5];
int i=0;
int sum=0;
create a class called Findsum
using arrays and the scanner.
store numbers into the array and use a method called find_sum(int [] arrayNumbers), that takes the array as an argument and return the total/sum of array elements
Leave a comment: