Write a program to find two maximum numbers of array.
Answers
Answered by
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
Math,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Geography,
1 year ago