/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package rdg6b;
import [Link];
/**
*
* @author user
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner input=new Scanner([Link]);
[Link]("choose numbers from 0 to 5");
int n=[Link]();
switch(n){
case 2:
[Link]("Enter two numbers: ");
int n21=[Link]();
int n22=[Link]();
[Link]("The max of %d and %d is
%d\n",n21,n22,[Link](n21,n22));
break;
case 3:
[Link]("Enter three numbers: ");
int n31=[Link]();
int n32=[Link]();
int n33=[Link]();
[Link]("The max of %d , %d and %d is
%d\n",n31,n32,n33,[Link](n31,n32,n33));
case 4:
[Link]("Enter four numbers: ");
int n41=[Link]();
int n42=[Link]();
int n43=[Link]();
int n44=[Link]();
[Link]("The max of %d , %d,%d and %d is
%d\n",n41,n42,n43,n44,[Link](n41,n42,n43,n44));
case 5:
[Link]("Enter five numbers: ");
int n51=[Link]();
int n52=[Link]();
int n53=[Link]();
int n54=[Link]();
int n55=[Link]();
[Link]("The max of %d,%d , %d,%d and %d is
%d\n",n51,n52,n53,n54,[Link](n51,n52,n53,n54,n55));
default:
[Link]("Invalid number!! ");
}
}