How can this small C program work? Variables are equal to zero but enters loop anyway : Im experimenting on a very low level with some C coding. This is not an actual problem because the program works as i wish, but could someone explain to me how the following conditions in the while-loop are evaluated?

I read that int variables without any given value equal to zero? Then 0+0 should be zero? But the program enters the while-loop anyway...

Thanks in advance.


    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    int randomNumber1;
    int randomNumber2;
    int answer;

    while (randomNumber1+randomNumber2!=answer){

        randomNumber1=(rand()%100)+1;
        randomNumber2=(rand()%100)+1;

        printf("\nWhat is %i + %i= ", randomNumber1, randomNumber2);
        scanf("%i,", &answer);

        if (randomNumber1+randomNumber2==answer){
            printf("Very Good\n");
        }
        else
        {
        printf("Wrong answer.\n");
        }
    }
}

