CSC 1401 Homework 2 - CSC 1401 Homework 2 All work that is...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 1401 Homework 2 All work that is turned in must: Contain explicit acknowledgment if you received ANY sort of help (from students or other professors) Turn in a hard copy of your code and a hard copy of the output in the order listed in the homework. Email me a zipped file of your code. o Create a directory called yournameHW2 and do all your work under this directory. o Go to the parent directory and zip this directory using Winzip (or gzip under Unix). o Email the zip file to me and the TA. Part 1: Write an application that reads as input from the user one int consisting of five digits. Then separate the number into its individual digits and print the digits separated from one another by three spaces each. For example, if the user enters the number 42339, the program should print 4   2   3   3   9 Hint: It is possible to do this exercise with the techniques you learned so far. You will need to use both the division and modulus operator to "pick off" each digit. You may
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

CSC 1401 Homework 2 - CSC 1401 Homework 2 All work that is...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online