Posted 03 May 2008 - 11:14 AM
I was given the following questions:
Given a variable with unknown value int abs, write a probgram that will print out the absolute value of abs. Hint: negate a variable by multiplying it by -1.
Ok. Thats it. I am very new to C# and programming overall. Having difficulty understanding the code and how it works. Can someone show me the code for this, and explain what it is doing? I have tried tutoring, online tutorails, and other stuff, but for some reason, I am just not getting it. Any help would be appreciated.