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", ¬a1); printf("Ingrese Nota 02 : "); scanf("%f", ¬a2); printf("Ingrese Nota 03 : "); scanf("%f", ¬a3); 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
Related posts:
Hacer un programa que ingrese por teclado un número total de segundos y que luego pueda mostrar la c...
Hacer un algoritmo dónde una persona recibe un préstamo de $100.00 de un banco y desea saber cuánto ...
Calcular el cambio de monedas en dólares y euros al ingresar cierta cantidad en dinero
Calcular el total de días transcurridos
Porcentaje de aprobados y desaprobados
Subir
Deja una respuesta