Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

C Code - Enter a number


Write a c program that asks the user to a number between 0 and 99,999. The program should separate the number into it individual digits and print the digits separated from one another by tabs. ex. 42139 the program should output: 4 2 1 3 9 The program should end if the user types in a value that is not between 0 and 99,999. program does not need to ask for input more than once. If it gets incorrect input, it should just exit. If it gets correct input, it should print the output as specified and exit. Attachments
Tags Clarifications