Calcular el promedio de tres calificaciones o el promedio de 3 notas

¡Haz clic para puntuar este proyecto!
(Votos: 48 Promedio: 3.9)
¿En que programa quieres ver el Código? :

    Pseudocódigo para calcular el promedio de 3 notas

    INICIO
        VARIABLES : NOTA1, NOTA2, NOTA3, PROM
        LEER <- NOTA1, NOTA2, NOTA3
        PROM <- (NOTA1+NOTA2+NOTA3)/3
        ESCRIBIR -> PROM
    FIN
    

    Diagrama de flujo para calcular el promedio de sus notas

    PSEINT FLEXIBLE

    Algoritmo www_PSeint_Site
        Escribir "Ingrese Nota 01 : "
        Leer Nota1
        Escribir "Ingrese Nota 02 : "
        Leer Nota2
        Escribir "Ingrese Nota 03 : "
        Leer Nota3
        Prom = (Nota1+Nota2+Nota3)/3
        Escribir "EL PROMEDIO ES : ", Prom
    FinAlgoritmo        
    

    Lenguaje C

    #include<stdio.h>
    int main() {
        float nota1, nota2, nota3, prom ; 
        printf("01. MUESTRA EL PROMEDIO DE 3 NOTAS.\n\n");
        printf("Ingrese Nota 01 : ");
        scanf("%f", &nota1);
        printf("Ingrese Nota 02 : ");
        scanf("%f", &nota2);
        printf("Ingrese Nota 03 : ");
        scanf("%f", &nota3);
        prom = (nota1 + nota2 + nota3)/3;
        printf("\nEL PROMEDIO ES : %.2f\n", prom);
        return 0;
    }
    

    Visual Basic .Net - Consola

    Imports System.Console
    Module Ejercicio01
        Dim NOTA1, NOTA2, NOTA3 As Integer
        Dim PROM As Decimal
        Sub Main()
            WriteLine("01. MOSTRAR EL PROMEDIO DE 3 NOTAS")
            WriteLine("")
            Write("Ingrese Nota 1 : ")
            NOTA1 = ReadLine()
            Write("Ingrese Nota 2 : ")
            NOTA2 = ReadLine()
            Write("Ingrese Nota 3 : ")
            NOTA3 = ReadLine()
            WriteLine("")
            PROM = (NOTA1 + NOTA2 + NOTA3) / 3
            WriteLine("EL PROMEDIO ES : " & PROM)
            ReadLine()
        End Sub
    End Module
    

    NOTA: Valor máximo y mínimo de una lista en Python

    Deja una respuesta

    Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

    Subir