U can use FOR command !
Ex:

For(i=0;i<n;,i++)
{
printf("type %d number:",i);
scanf("%d",&i);
}
sum=0
for(i=0;i<n;i++)