learning c wrote code.whats wrong.(no error acoording to compiler) :     #include <stdio.h>
    #include <stdlib.h>
    
    
    int main()
    {int array1[10],i=0,sum=0;
    
    while(i<10)
    {scanf("%d",&array1[i]);
    i=i+1;
    }
    while(i<10)
    {sum=sum+array1[i];i=i+1;
    }
    
    printf("sum =%d",sum);
       return 0;
    }

DO SEND CORRECTED CODE FOR ME TO CHECK IT ON MY COMPILER.
my compiler works but sum is always equal to 0. 




