Escolar Documentos
Profissional Documentos
Cultura Documentos
}
If (b>a && b>c)
{
mayor=b;
}
If (c>a && c>b)
{
Mayor=c;
}
If a<b && a<c)
{
Menor=a;
}
If b<a && b<c)
{
Menor=b;
If c<a && c<b)
{
Menor=c;
}
//SALIDA DE INFORMACION
System.out.println(el numero mayor es:+ mayor);
System.out.println(el numero menor es:+ menor);
}
}
System.out.println("Soltero");
else
{
if (c==2)
System.out.println("Casado");
else
if(c==3)
System.out.println("Viudo");
else
if(c==4)
System.out.println("Divorciado");
else
System.out.println("ERROR");
}
}
}
CODIGO JAVA
package ejemplo.pkg5;
import javax.swing.JOptionPane;
public class main
{
public static void main(String[] args)
}
int n;
String nn=JOptionPane.showInputDialog("Ingresa el numero de mes
: ");
n=Integer.parseInt(nn);
switch(n)
{
}
}
}