Está en la página 1de 2

// QUIERO AGRADECERLE INSTRUCTORA POR EL TIEMPO BRINDADO EN EL TALLER C++ DIOS LA

BENDIGA

#include<iostream>

#include<conio.h>

using namespace std;

int main(){

int i,nota1,nota2,nota3,promedio;

int opcion[2];

do {
int nota1,nota2,nota3,promedio;
printf("Ingrese primer nota:");
scanf("%i",&nota1);
printf("Ingrese segunda nota:");
scanf("%i",&nota2);
printf("Ingrese tercer nota:");
scanf("%i",&nota3);
promedio=(nota1 + nota2 + nota3) / 3;
if (promedio >= 5)
{
printf("aprobado");
}
else
{
if (promedio >= 3)
{
printf("En este momento no tiene aprobada la materia de tecnología,
pero tiene la oportunidad de recuperar");
}
else
{
printf("Reprobado");
}
}
getch();

printf(" \n calcular mas notas de estudiantes?");

scanf("%s", opcion);

} while (opcion[0] == '1' || opcion[0] == '1');

return 0;
}

También podría gustarte