Leer una nota y mostrar si el estudiante aprobó o desaprobó (nota mínima 11).
Leemos la nota; si es mayor o igual a 11 el estudiante aprobó; si no aprobó (SI - SINO).
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
nota = float(input("Ingrese su nota: "))
if nota >= 11:
print("Aprobaste la materia")
else:
print("Desaprobaste la materia")
let nota = parseFloat(prompt("Ingrese su nota:"));
if (nota >= 11) {
alert("Aprobaste la materia");
} else {
alert("Desaprobaste la materia");
}
#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;
}
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");
}
}
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");
}
}
Si la nota está en A1:
=SI(A1>=11,"Aprobado","Desaprobado")