Back to Browse

Java program to Find the Sum Of Border No.s in 2D Array

263 views
Nov 26, 2024
11:06

Border Sum 2-d Array Tutorial of Java Program for BorderSum/Boundry Sum Java Program for finding the sum of number on the border of a 2d array. Time-Code: 0:00 : Introduction 0:36 : Theory 2:00 : 1st Program Walk Through 7:24 : 2nd Program 9:09 : Output check for border sum Keep in Mind: 1. if(j==0) else if(j==(n-1)) else if(i==0 && j!=0 && j!=(n-1)) else if(i==(m-1) && j!=0 && j!=(n-1)) 2. if(j==0 || j==(n-1) ||i==0 ||i==(m-1) ) sum+=a[i][j]; #java #bordersum #2darray Program link : https://drive.google.com/drive/folders/112mclSFBvcs-hySBLl0tw835r2I2qP-2?usp=sharing If something helped you, LIKE , SUBSCRIBE & SHARE https://www.youtube.com/c/theeducationvalley?sub_confirmation=1 Software: Adobe Support/Connect/Friend me: @thecgr

Download

0 formats

No download links available.

Java program to Find the Sum Of Border No.s in 2D Array | NatokHD