```
    printf("Enter the number of gallons used for tank#1: ");
    scanf("%.f", &number);
    while ((c = getchar() != '\n') && c != EOF);
    printf("Enter the number of miles driven:");
    scanf("%.f", &y);
    while ((c = getchar() != '\n') && c != EOF);
    div = number / y;
    printf("***The miles per gallon for this tank is %d\n\n", number, y, div);

```

I am using a for loop here, the only problem I have with this section is the division of `number` and `y`.

Every time I try to do so the result isn't calculated, it'll give me a random number or an extremely long number.