this is my code for water.c but an error is still showing need a lil help thanks
#include <stdio.h>
int main(void)
{
int minutes;
int bottles;
}
do
{
printf("minutes:\n");
int minutes = get_int(); // an integer
while (minutes > 0)
}
{
printf("bottles:\n");
bottles = mintues * 12; // the amount of bottles used
}
{
printf ("You took %i Minutes in the shower which means that you have used %i amount of bottles of water\n", minutes, bottles);
}
and I got an error
^
water.c:5:1: note: to match this '{'
{
make: *** [water] Error 1
~/workspace/pset1/ $ make water
int bottles; ^
^
~/workspace/pset1/ $ make water
int bottles; ^
water.c:10:1: error: expected identifier or '('
do
^
3 errors generated.
make: *** [water] Error 1
~/workspace/pset1/ $