I am stuck on how to write statements in code..

1) output a single line of the form:

SOLD TICKETS a - b

//(I DO NOT HAVE THIS PART)

where a is the starting number of the tickets sold and b is the ending number (inclusive) of the tickets sold. If k is 1, then a and b will be equal. (Note: For the very first command of this type, the value of a will equal the number of presold tickets, since the presale tickets are numbered from 0 to the total number of presale tickets minus .

2)The two reasons to reject a bid are if the raise of the bid isn't more than the minimum required or if the auction has been closed already. For an initial bid, it must equal the minimum raise of the bid. Thus, we assume that without any bids, the first price of the item is $0.

3) where k represents the number of the drink sold and n represents the drink number, ranging from 0 through 9, inclusive. Note that for this line of output, the value of k may differ from the number of drinks requested by the guest, if the inventory runs out. If the drink requested is already sold out, the latter message should be printed.

I just dont kow how to write these in code - c programm

ANY HELP WOULD BE APPRECIATED!!