RESPONDER UNA PREGUNTA

Si para responder la pregunta, crees necesario enviar un archivo adjunto, puedes hacerlo a traves del correo [email protected]

    Pregunta:  67811 - APPLET JAVA SUMATORIA NUMEROS
Autor:  JOHANA REYSre GARCIA
Contar los números enteros positivos introducidos y hallar la sumatoria de los mismos. El algoritmo termina cuando se introduce un número entero negativo.
ya lo tengo en modo texto,,, ahora necesito que porfavor me ayuden con el applet pues no tengo ni idea,,, este es el modo texto
POR FAVOR AYUDEN CON EL APLET.... GRACIAS
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class NumeroEnteroPositivoSumar {

public static void main(String[] args)throws IOException {

int i=0;
int acu=0;
int n;

BufferedReader sec = new BufferedReader (new InputStreamReader (System.in));
System.out.println("Numero Entero Positivo a Sumar:");
n = Integer.parseInt(sec.readLine());

while (n>0)
{
acu=acu+n;
i++;

System.out.println("NUMEROS DIGITADOS: " + i);
System.out.println("LA SUMATORIA: " + acu);
System.out.println("Para terminar digite numero negativo");
System.out.println("SI DESEA CONTINUAR ESCRIBA MAS NUMEROS");
n = Integer.parseInt(sec.readLine());
System.out.println("BY: JOHANA REYES");

}
System.out.println("Numero no valido " +n);
}
}


Nombre
Apellidos
Correo
Comentarios