Saved Bookmarks
| 1. |
WAP to check maximum of three numbers.Also write an algorithm |
|
Answer» import java.util.*;class max{public STATIC void main (string args[]){SCANNER in =new Scanner(System.in);int a,b,C,x,y;System.out.println("Enter THREE numbers");a=in.nextInt();b=in.nextInt();c=in.nextInt();x=Math.max(a,b);y=Math.max(c,x);System.out.println("Greatest number="+y);}}...*HOPE it will help you* |
|