I'm new to this but I need an answer as fast as possible I'm looking to make an arrangement that contains a total of 5 records so far what I had was the whole program but I was not running because of the records if they can solve that problem making the registration structure I would greatly appreciate it, this is the program:
#include "stdio.h"
main()
{
int altitud[2];
i=1;
while (i<2)
{
printf("Las revoluciones por minuto de todos los motores es de: ");
scanf("%d", &altitud[i]);
printf("La presión en PSI es: ");
scanf("%d", &altitud[i].B);
printf("la cantidad de aceite en l/m es: ");
scanf("%d", &altitud[i].C);
printf("La temperatura del aceite es de: ");
scanf("%d", &altitud[i].D);
printf("La temperatura de incendio es; ");
scanf("%d", &altitud[i].E);
}
i=1;
while(i<2)
{
if(altitud[i].A>10800)
{
printf("APU se apago por el exceso de revoluciones en el motor");
}
if(altitud[i].B<3000)
{
printf("APU se apago por falta de presión");
}
if(altitud[i].C<175)
{
("APU se apagó por falta de aceite");
}
if(altitud[i].D<380)
{
("APU se apago por falta de temperatura en el aceite");
}
if(altitud[i].E>800)
{
("APU se apagó por incendio en una zona del avión");
}
i=i+1
}
}
If anyone can help me create such a record without overdoing the program, I would appreciate it (the five registers are the first five letters and I need to enter them just after declaring the variable altitude [2])