Is it possible to automate this program more in order to change the variable number?
for (i = 1; i < 4; i++)
{
printf("Enter the Code for Item #%d: ",i);
scanf("%d", &CodeNumber1);
printf("Enter the Price for Item #%d: ",i);
scanf("%f", &Price1);
printf("Enter the Quantity for Item #%d: ", i);
scanf("%d", &Quantity1);
}
So where the variable has 1 written, would it be possible to replace it with i?
Without using an array