What is the value of the double variable x after each of the following statements is executed?

Question:

What is the value of the double variable x after each of the following statements is executed?

a) x = Math.Abs(7.5);

b) x = Math.Floor(7.5);

c) x = Math.Abs(0.0);

d) x = Math.Ceiling(0.0);

e) x = Math.Abs(-6.4);

f) x = Math.Ceiling(-6.4);

g) x = Math.Ceiling(-Math.Abs(-8 + Math.Floor(-5.5)));

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Visual C# How to Program

ISBN: 978-0134601540

6th edition

Authors: Paul J. Deitel, Harvey Deitel

Question Posted: