« first day (2362 days earlier)      last day (572 days later) » 

7:23 AM
-8
Q: Java program to find the largest & smallest number in n numbers without using arrays

user3168844I could get the largest without using arrays but, unable to get the smallest one. public static void main(String[] args) { int smallest=0; int large=0; int num; System.out.println("enter the number"); Scanner input=new Scanner(System.in); ...

 
 
1 hour later…
8:37 AM
@tripleee I found a canonical I guess: stackoverflow.com/questions/18525474/…
 

« first day (2362 days earlier)      last day (572 days later) »