user input using scanf function