Aprobado o desaprobado

Leer una nota y mostrar si el estudiante aprobó o desaprobó (nota mínima 11).

← Volver a Artículos



¿Cómo determinar aprobación?

Leemos la nota; si es mayor o igual a 11 el estudiante aprobó; si no aprobó (SI - SINO).



Solución en PSeInt

Proceso AprobadoDesaprobado
    Definir nota Como Real;

    Escribir "Ingrese su nota: ";
    Leer nota;

    Si nota >= 11 Entonces
        Escribir "Aprobaste la materia";
    SiNo
        Escribir "Desaprobaste la materia";
    FinSi
FinProceso


Solución en Python

nota = float(input("Ingrese su nota: "))

if nota >= 11:
    print("Aprobaste la materia")
else:
    print("Desaprobaste la materia")


Solución en JavaScript

let nota = parseFloat(prompt("Ingrese su nota:"));

if (nota >= 11) {
  alert("Aprobaste la materia");
} else {
  alert("Desaprobaste la materia");
}


Solución en C++ (Dev C++)

#include <iostream>
using namespace std;
int main() {
    double nota;
    cout << "Ingrese su nota: ";
    cin >> nota;
    if (nota >= 11) cout << "Aprobaste la materia\n";
    else cout << "Desaprobaste la materia\n";
    return 0;
}


Solución en C#

using System;
class Program {
  static void Main() {
    double nota = double.Parse(Console.ReadLine());
    if (nota >= 11) Console.WriteLine("Aprobaste la materia");
    else Console.WriteLine("Desaprobaste la materia");
  }
}


Solución en Java

import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    System.out.print("Ingrese su nota: ");
    double nota = sc.nextDouble();
    if (nota >= 11) System.out.println("Aprobaste la materia");
    else System.out.println("Desaprobaste la materia");
  }
}


Solución en Excel

Si la nota está en A1:

=SI(A1>=11,"Aprobado","Desaprobado")


Publicado por: ObiWan
Fecha: 12/09/2025