Question: decimal a = 2 . 5 m; decimal b = 4 . 0 m; decimal c = 1 2 . 7 m; int i =

decimal a =2.5m;
decimal b =4.0m;
decimal c =12.7m;
int i =4;
int j =8;
int k =17;
(Refer to code example 4-1.) What is the value of x after the following statement is executed?
decimal x = Math.Round(c)
Question 17 options:
a)
12
b)
12.7
c)
0
d)
13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!