[Solved] Java program to find the largest & smallest number in n numbers without using arrays
[ad_1] public static void main(String[] args) { int smallest = 0; int large = 0; int num; System.out.println(“enter the number”);//how many number you want to enter Scanner input = new Scanner(System.in); int n = input.nextInt(); num = input.nextInt(); smallest = num; //assume first entered number as small one // i starts from 2 because we … Read more