
29/08/2004, 22:41
|
| | Fecha de Ingreso: octubre-2003
Mensajes: 208
Antigüedad: 21 años, 4 meses Puntos: 0 | |
mport java.awt.*;
import java.applet.*;
public class angulo extends Applet
{
int ga,m,s,seg,segundos,calculo,angulo,resi,segfinal;
public void init(){
//IMPORTANTISISISISISISISSISIMO NUNCA NUNCAAAAAAAAAAAAAAAAAAAAA USES LA G COMO VARIABLE SI VAS APONER (Graphics G)
ga=80;
m=50;
s=40;
seg = (90*3600);
segundos = ((ga*3600)+(m*60)+s);
calculo = (seg-segundos);
angulo = (calculo/3600);
resi = ((calculo%3600)/60);
segfinal = ((calculo%3600)%60);
}
public void paint(Graphics g){
g.drawString("Se necesita " + angulo + " grados, " + resi + " minutos, " + segfinal + " segundos. ",20,50);
}
}
*--------------------------
CREO QEU YA LA ARME GRAX POR LA AYUDA GONCAFA
__________________ Webmaster
http://www.conglomodigital.com |