Computer Science, asked by nasmaj5789, 11 months ago

Write a program to find two maximum numbers of array.

Answers

Answered by ItsCuteBoy
0

Answer:

Java Program to Find the Largest Two Numbers in a Given Array. public class Largest_Numbers. int n, l1, l2, temp; Scanner s = new Scanner(System. System. out. print("Enter no. of elements you want in array:"); n = s. nextInt(); if(n > 1) int a[] = new int[n]; System. out. println("Enter all the elements:");

Similar questions