Está en la página 1de 1

UNIDAD 1

EJERCICIO
MARIO jOSIAS NICIO HERNANDEZ
NUMERO DE CONTROL: 13730161
LIC. ARACELI MARTINEZ TAPIA
4 sEMESTRE
Ing.Informatica
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package capturadecalificaciones;
import java.io.*;
import java.util.Scanner;
/**
*
* @author Steve
*/
public class CapturaDeCalificaciones {
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
Scanner leer=new Scanner(System.in);
int Calificacion1, Calificacion2, Calificacion3;
double Promedio;
System.out.println("Introduzca La Primera Calificacion");
Calificacion1 =leer.nextInt();
System.out.println("Introduzca La Segunda Claifcacion");
Calificacion2 =leer.nextInt();
System.out.println("Introduzca La Tercera Calificacion");
Calificacion3 =leer.nextInt();
Promedio =((Calificacion1 + Calificacion2 + Calificacion3)/3 );
System.out.println("Su Promedio Es:" + Promedio);
// TODO code application logic here
}
}

También podría gustarte