I'm just starting out in learning to code in C using edX and I am sure this is a really simple mistake, which I can't spot.
I am getting an extra ./ which I can't work out where it is coming from.
This is what I get as the output
How many minutes does your shower last: 3
minutes: 3
bottles: 36./
I am using the CS50 IDE on Cloud 9 and my code is in the screenshot
Your help is appreciated.
This is my code:
int main(void)
{
int showerlength, bottle;
printf("How many minutes does your shower last: ");
scanf("%d", &showerlength);
bottle = (showerlength * 12);
printf("minutes: %d\n",showerlength );
printf("bottles: %d\n",bottle );
}
This is the output I get
~/workspace/pset1/ $ ./water
How many minutes does your shower last: 3
minutes: 3
bottles: 36./