03-01-2003, 01:37 AM
You're actually doing quite well. There is an easier way to do this than SELECT CASE, however. A hint:
Inside the loop, put codes to print all the gifts up to that day, add up the cost, and put it in the TotalCost varible.
Code:
FOR i = 1 to num
'
'Put code here
'
NEXT
'The below will print the total cost added up.
PRINT TotalCost
Inside the loop, put codes to print all the gifts up to that day, add up the cost, and put it in the TotalCost varible.
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]