" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Leer: n1,n2,n3,prom;
----------------------
prom = (n1+n2+n3)/3;
--------------------------
Imprimir: prom
=========================================================
En lenguaje c++:
#include <stdio.h>
#include <conio.h>
main()
{float n1,n2,n3,prom;
printf ("Ingrese primer numero: ");
scanf ("%f",&n1);
printf ("Ingrese segundo numero: ");
scanf ("%f",&n2);
printf ("Ingrese tercer numero: ");
scanf ("%f",&n3);
prom = (n1+n2+n3)/3;
printf ("El promedio es: %.2f",prom);
printf ("\n\n Jeizon1L - misdeberes.es");
getch();
}
Eso es todo!! ^_^