while true printf Input the number of elements of the array scanf numb

1
2
3
4
5
6
7
8
9
while(true)
{
printf( "Input the number of elements of the array:\n" );
scanf( "%d",&number );
if( number > 32767 || number < 0 )
printf("Enter retry!");
printf( "\n" );
}