SlideShare a Scribd company logo
1 of 1
import javax.swing.JOptionPane;



import javax.swing.*;

public class tres_num {

    /**

    * @Autor Dagoberto Sierra

    */

    public static void main(String[] args) {

          // TODO code application logic here

          int n1, n2, n3 ;

   n1 =Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese un 1er
numero"));

   n2 =Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese un 2do
numero"));

   n3 =Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese un 3er
numero"));

          if ((n1>n2)&& (n1>n3))

               JOptionPane.showMessageDialog(null, "El numero mayor es el primero
"+n1);

          if ((n2>n1)&& (n2>n3))

               JOptionPane.showMessageDialog(null, "El numero mayor es el segundo
"+n2);

          if ((n3>n1 && n3>n2))

               JOptionPane.showMessageDialog(null, "El numero mayor es tercero "+n3);

    }

}




Profesor Dagoberto Sierra                                                      Página 1

More Related Content

What's hot

Public class c
Public class cPublic class c
Public class conlyhenry
 
Ejerc3 141204195452-conversion-gate01
Ejerc3 141204195452-conversion-gate01Ejerc3 141204195452-conversion-gate01
Ejerc3 141204195452-conversion-gate01Ronals Fernandez Jara
 
Tmpj2 01 201181102muhammad tohir
Tmpj2 01 201181102muhammad tohirTmpj2 01 201181102muhammad tohir
Tmpj2 01 201181102muhammad tohirpencari buku
 
Bcsl 033 data and file structures lab s1-2
Bcsl 033 data and file structures lab s1-2Bcsl 033 data and file structures lab s1-2
Bcsl 033 data and file structures lab s1-2Dr. Loganathan R
 
modern javascript, unobtrusive javascript, jquery
modern javascript, unobtrusive javascript, jquerymodern javascript, unobtrusive javascript, jquery
modern javascript, unobtrusive javascript, jqueryAdam Zygadlewicz
 
Import java
Import javaImport java
Import javawildled
 
Practica 10
Practica 10Practica 10
Practica 10Yoly QC
 
Создание новых объектов
Создание новых объектовСоздание новых объектов
Создание новых объектовConstantin Kichinsky
 
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานโปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานknangsmiley
 
exercise of basic computer programming.docx
exercise of basic computer programming.docxexercise of basic computer programming.docx
exercise of basic computer programming.docxmiftah88
 
Event loops in java script 01 - stack
Event loops in java script 01 - stackEvent loops in java script 01 - stack
Event loops in java script 01 - stackVishnu Padmanabhan
 
Функциональное реактивное программирование
Функциональное реактивное программированиеФункциональное реактивное программирование
Функциональное реактивное программированиеDmitriy Kiriyenko
 

What's hot (20)

Public class c
Public class cPublic class c
Public class c
 
Ejerc3 141204195452-conversion-gate01
Ejerc3 141204195452-conversion-gate01Ejerc3 141204195452-conversion-gate01
Ejerc3 141204195452-conversion-gate01
 
ikp213-06-template-c++
ikp213-06-template-c++ikp213-06-template-c++
ikp213-06-template-c++
 
Sine prog
Sine progSine prog
Sine prog
 
Tmpj2 01 201181102muhammad tohir
Tmpj2 01 201181102muhammad tohirTmpj2 01 201181102muhammad tohir
Tmpj2 01 201181102muhammad tohir
 
Bcsl 033 data and file structures lab s1-2
Bcsl 033 data and file structures lab s1-2Bcsl 033 data and file structures lab s1-2
Bcsl 033 data and file structures lab s1-2
 
Retornan y no reciben
Retornan y no recibenRetornan y no reciben
Retornan y no reciben
 
modern javascript, unobtrusive javascript, jquery
modern javascript, unobtrusive javascript, jquerymodern javascript, unobtrusive javascript, jquery
modern javascript, unobtrusive javascript, jquery
 
Import java
Import javaImport java
Import java
 
All set1
All set1All set1
All set1
 
Practica 10
Practica 10Practica 10
Practica 10
 
Создание новых объектов
Создание новых объектовСоздание новых объектов
Создание новых объектов
 
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานโปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
 
exercise of basic computer programming.docx
exercise of basic computer programming.docxexercise of basic computer programming.docx
exercise of basic computer programming.docx
 
Java
Java Java
Java
 
Los fantastico
Los fantasticoLos fantastico
Los fantastico
 
Event loops in java script 01 - stack
Event loops in java script 01 - stackEvent loops in java script 01 - stack
Event loops in java script 01 - stack
 
Функциональное реактивное программирование
Функциональное реактивное программированиеФункциональное реактивное программирование
Функциональное реактивное программирование
 
Project
ProjectProject
Project
 
9. CodeIgniter add
9. CodeIgniter add9. CodeIgniter add
9. CodeIgniter add
 

Viewers also liked

Portfólio de Patrícia Guedes
Portfólio de Patrícia GuedesPortfólio de Patrícia Guedes
Portfólio de Patrícia GuedesPatricia Guedes
 
OER insights into a multilingual landscape
OER insights into a multilingual landscapeOER insights into a multilingual landscape
OER insights into a multilingual landscapeLangOER
 
The science of story telling
The science of story tellingThe science of story telling
The science of story tellingAIRR Media
 
Soal latihan kewirausahaan kelas x
Soal latihan kewirausahaan kelas xSoal latihan kewirausahaan kelas x
Soal latihan kewirausahaan kelas xsaraheva yulianti
 
Feliz navidad marta codes 19 12-16
Feliz navidad marta codes 19 12-16Feliz navidad marta codes 19 12-16
Feliz navidad marta codes 19 12-16martacodeschito
 
Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบท
 Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบท Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบท
Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบทnawaporn khamseanwong
 
Smt 2 sholat dalam keadaan darurat
Smt 2 sholat dalam keadaan daruratSmt 2 sholat dalam keadaan darurat
Smt 2 sholat dalam keadaan daruratfalahnurul96
 

Viewers also liked (10)

Portfólio de Patrícia Guedes
Portfólio de Patrícia GuedesPortfólio de Patrícia Guedes
Portfólio de Patrícia Guedes
 
Dissertation.1
Dissertation.1Dissertation.1
Dissertation.1
 
OER insights into a multilingual landscape
OER insights into a multilingual landscapeOER insights into a multilingual landscape
OER insights into a multilingual landscape
 
The science of story telling
The science of story tellingThe science of story telling
The science of story telling
 
Soal latihan kewirausahaan kelas x
Soal latihan kewirausahaan kelas xSoal latihan kewirausahaan kelas x
Soal latihan kewirausahaan kelas x
 
Gestión de los Sistemas de Calidad
Gestión de los Sistemas de Calidad Gestión de los Sistemas de Calidad
Gestión de los Sistemas de Calidad
 
Feliz navidad marta codes 19 12-16
Feliz navidad marta codes 19 12-16Feliz navidad marta codes 19 12-16
Feliz navidad marta codes 19 12-16
 
Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบท
 Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบท Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบท
Loadแนวข้อสอบ นายช่างเครื่องกล กรมทางหลวงชนบท
 
Presentación1
Presentación1Presentación1
Presentación1
 
Smt 2 sholat dalam keadaan darurat
Smt 2 sholat dalam keadaan daruratSmt 2 sholat dalam keadaan darurat
Smt 2 sholat dalam keadaan darurat
 

More from dagoberto sierra (9)

Portafolio01
Portafolio01Portafolio01
Portafolio01
 
Powerdago01
Powerdago01Powerdago01
Powerdago01
 
listado de numeros
listado de numeroslistado de numeros
listado de numeros
 
Vector
Vector Vector
Vector
 
Ejemploc de caso
Ejemploc de casoEjemploc de caso
Ejemploc de caso
 
Taller01
Taller01Taller01
Taller01
 
Ejemplo caso001
Ejemplo caso001Ejemplo caso001
Ejemplo caso001
 
Netb si
Netb siNetb si
Netb si
 
ayuda estilo windows
ayuda estilo windowsayuda estilo windows
ayuda estilo windows
 

Netb si and

  • 1. import javax.swing.JOptionPane; import javax.swing.*; public class tres_num { /** * @Autor Dagoberto Sierra */ public static void main(String[] args) { // TODO code application logic here int n1, n2, n3 ; n1 =Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese un 1er numero")); n2 =Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese un 2do numero")); n3 =Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese un 3er numero")); if ((n1>n2)&& (n1>n3)) JOptionPane.showMessageDialog(null, "El numero mayor es el primero "+n1); if ((n2>n1)&& (n2>n3)) JOptionPane.showMessageDialog(null, "El numero mayor es el segundo "+n2); if ((n3>n1 && n3>n2)) JOptionPane.showMessageDialog(null, "El numero mayor es tercero "+n3); } } Profesor Dagoberto Sierra Página 1