Computer Science, asked by zlsralte5668, 1 year ago

Write a program finds the max element an array a of size n in data structure

Answers

Answered by lovejotbhardwaj02
0

ava Program to Find the Largest Number in an Array

   public class Largest_Number.

   {

   int n, max;

   Scanner s = new Scanner(System.

   System. out. print("Enter number of elements in the array:");

   n = s.

   int a[] = new int[n];

   System. out. println("Enter elements of array:");

Similar questions