I wanted to know if someone could help me with this error in my code. I do not understand why it does not continue after the accountant takes the value of 10.
This is my code:
#include<stdio.h>
#include<windows.h>
int main() {
int Nalumnos, cont;
Nalumnos=0;cont=0;
int x[Nalumnos];
scanf("%d",&Nalumnos);
do{
cont=cont+1;
x[cont]=cont;
printf("Alumno numero %d\n",x[cont]);
}while(cont<Nalumnos);
return 0;
}