Ok, so I need to make a program, that uses a for loop, that will count from a entered value to a second entered value and an entered interval. I am not very good at programming so this is the best I could come up with
Code:
int main()
{ int count, x, y, z;
for(count=x; count<=y ; count=count+z)
{
printf("enter starting value: ", x);
scanf("%d", &x);
printf("enter ending value: ", y);
scanf("%d", &y);
printf("enter increment: ", z);
scanf("%d" &z);
}
return 0;
}
If any one could help me I would be extremely grateful.