Microsoft
Software
Hardware
Network
Question : simple math programming question
I have a simple requirement of a user inputting 5 integers (all at once) and I have to use division and the remainder function (%) to break them into 5 separate digits.
So if the user inputs 42339 I have to separate them out and display back
4 2 3 3 9 using only division and remainder functions to accomplish the breaking apart of the number. I have no clue where to start on this.
Answer : simple math programming question
looks like a school assignment. Here is the clue,
10 is the one used for diving and the reminder function for each time.
That is 42339 % 10 is 9
That is 4233 % 10 is 3
etc etc
Random Solutions
How to preserve the folders created date while copying folders (huge data)
Error: "DataTable already belongs to another DataSet."
Port replication to another IP
Which strategies to use for a program written in python?
Cannot print any PDF document, only option is to save as .prn and then it does not print.
Powershell WMI Query
Server Side Includes folder not in the right place?
Search Form Input Field Dropping in IE
Can I retrieve all my Windows XP settings and programs after I re-installed Windows on a seperate folder?
Intelligent Filter want to know which mails were blocked