Hello everyone,
In the code below why is it not grabbing a value for x?
Code:#include<stdio.h> int main(void) { int x = 0; int j = 0; printf("Enter a number: "); scanf("%d",&x); while(j!=1) { if(x<=40) j = 1; else { printf("Enter a number: "); scanf("%d",&x); j = 0; } } printf("%d",x); return 0; }