How do i assign a value to a different variable every time the loop activates? I want to change the variable inside a scanf() so that when a new number is assigned to a different variable. Like in:
int a,b,c,i;
for(int i=1;i<=3;i++)
{
printf("enter a number:");
scanf("%d",&a);
}
The loop asks for numbers 3 times, and i want to enter 1,2, and 3. How can i assign them in a different variable each? Like 1 is assigned to a, b=2, and c=3?