C Program Using Looping Statements