1) Please don't bump threads... and especially not after only 4 minutes!
2) No; we're not going to give you code so you can "use that in my program"... that's scoop and poop coding and it's NOT how you learn C.
Do you actually want to learn C programming or are you just trying to pass a course you didn't want to take in the first place?
If it's the former... get a decent book on C (
Teach Yourself C in 21 Days is pretty good...
The C Programming Language is held in very high esteem) and start with page 1... read every word, compile the examples and exercises, learn what does and does not work... review as necessary, then turn to page 2 ... by the time you get to the end of the book you should be able to write simple programs in console mode... the rest comes with experience and practice.