#java
Read more stories on Hashnode
Articles with this tag
Program to find the second largest element of an array. · Solution : Algorithm : Find the maximum number of the array. Replace the maximum number with...
Find the unique number in an array where all the elements are repeated twice. All the numbers are positive. Answer : Let array be Arr =...
factorial in java · Find factorial :- int factorial = number; for (int i = number - 1; i > 0; i--) { factorial =...
import java.util.Scanner; public class SumOfTwoNumber { public static void main(String[] args) { Scanner scan = new Scanner(System.in); ...