Looks good except for this right here
You want to enter into the number variable not the num variable. You want something like this..
Code:
scanf(" %c",&number);
Notice the space in front of the % sign, this will allow scanf to ignore any white space that is left in the buffer.
EDIT: You also need a return value for your function. You had it right the first time.
Code:
int increase(int total, int num)
{
printf("|---------------------|\n");
printf("| %d |\n", total);
printf("| |\n");
printf("| |\n");
printf("|---------------------|\n");
total = total + num;
return total;
}
One last thing you want to take in account is your indentation in the while loop you will find that your braces do not add up and the i++ is in a degraded spot.