package notas; import java.util.Scanner; public class Notas { public static void main(String[] args) { Scanner entrada = new Scanner(; System.out.println("Ingrese su nota: "); int nota = entrada.nextInt(); if (nota >= 70) System.out.println("Aprobado"); else System.out.println("Reprobado"); } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.