Saturday, September 06, 2008

import javax.swing.*;
public class SorteoBoletaDeEstaSemana
{
public static void main(String args[])
{
int ganadorDeLaSemana=new Integer(0);
int cantidadParticipantes=new Integer(0);
boolean sorteado=false;
cantidadParticipantes=Integer.parseInt(JOptionPane.showInputDialog("Cantidad de concursantes ??? :P"));
do{
ganadorDeLaSemana=(int)Math.ceil(100*Math.random());
if(ganadorDeLaSemana0)
{
sorteado=true;
}

}while(!sorteado);
JOptionPane.showMessageDialog(null,"EL GANADOR DEL PASE DE CORTESIA ES EL PARTICIPANTE NUMERO "+Integer.toString(ganadorDeLaSemana));
System.exit(0);

}
}

Geek Quiz

Geek Quiz


lo publico con cierto orgullo jeje
83% Geek

Created by OnePlusYou - Free Dating Sites