Hey everyone.
I have been out sick from school for the last week. I get back here and I get a hand out assignment from my teacher to do.
Now we have no text book in C ( im not even sure why I need this course to begin with but that's another story) we are supposed to find
the information ourselves because C is such a small unit in our course and really I will probably never look at the stuff after about 4 more weeks.
Anyway, I scanned through the forum rules and didn't see anything against this... If it is, im sorry i'll delete this. If you dont weant to help thats cool too.
Anyway this is a very small assignment, here it is as follows.
1. Use a printf statement to print out the value of the integer variable sum
2. Use a printf statement to print out the text string "Welcome", followed by a newline
3. Use a printf statement to print out the character variable letter
4. Use a printf statement to print out the float variable discount
5. Use a printf statement to print out the float variable dump using two decimal places
6. Use a scanf statement to read a decimal value from the keyboard, into the integer variable sum
7. Use a scanf statement to read a float variable into the variable discount_rate
8. Use a scanf statement to read a single character from the keyboard into the variable operator. Skip leading blanks, tabs and newline characters.
Even if you cant help thanks for reading through this. Peace.