jeudi 1 septembre 2016

while loop with two conditions in c

I have been trying to run this code, but it only works when I use one condition, and leave out the other condition, but I need both conditions to be met simultaneously.

int n;
do
{
    printf("numbern");
    scanf("%i", &n);
}
while (n < 0 && n > 3)

Aucun commentaire:

Enregistrer un commentaire