/** * Created by root on 8/3/17. */ package EPC; import java.util.Scanner; public class MatrixSum { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Enter 1 for one dimensional and 2 for two dimensional"); int type = in.nextInt(); if (type == 1) { System.out.println("enter the size of your one dimensional matrix"); int size = in.nextInt(); int oneD1[] = new int[size]; int oneD2[] = new int[size]; int result[] = new int[size]; System.out.println("enter the values of matrix one"); for (int i = 0; i