|
-
March 30th, 1999, 05:47 AM
#1
How Do You?
How do you write a code in C++ that gives you the difference between
2 numbers. For example: 1 and 9 the difference is 8.
Now I know you can say 9-1=8 but 1-9= -8. What I need is the difference
without going into minus.... I find this very hard and cant find how the
logic of the code should be or even how to write it....
How do you write the code for that. I am new to this so I need the
most basic code.
Thank You in Advance...
Ercan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|