I want to save the times of the athletes in minutes and seconds. For that, I made a time struct. But I have two problems:
I want to save the times of the athletes in minutes and seconds. For that, I made a time struct. But I have two problems:
You are loading 1 single struct and you step on it 10 times, you should create an array of your struct and go one by one.
struct time{
int minutos;
int segundos;
};
struct time tiempos[10];
int main(){
and then upload / consult them within the for
scanf ("%d", &tiempos[i].minutos);