Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package Tarea2;
- import java.util.Scanner;
- /**
- *
- * @author CIDCA
- */
- public class Tarea2 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // Notas del Año
- Scanner teclado = new Scanner (System.in);
- int n1, n2, n3, n4, n5;
- System.out.println("Digite la primera nota: ");
- n1 = teclado.nextin( );
- System.out.println("Digite la segunda nota: ");
- n2 = teclado.nextin( );
- System.out.println("Digite la tercer nota: ");
- n3 = teclado.nextin( );
- System.out.println("Digite la cuarta nota: ");
- n4 = teclado.nextin( );
- System.out.println("Digite la quinta nota: ");
- n5 = teclado.nextin( );
- if ((n1+n2+n3+n4+n5)>75)
- {
- System.out.println("El estudiante pasó el año");
- }
- else
- System.out.println("El estudiante perdió el año");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement