Question: 10. If the decPay variable contains the number 1200.76, which of the following statements displays the number as $1,200.76? a. lblPay.Text = decPay.ToString(N2) b. lblPay.Text

10. If the decPay variable contains the number 1200.76, which of the following statements displays the number as $1,200.76?

a. lblPay.Text = decPay.ToString("N2")

b. lblPay.Text = decPay.ToString("F2")

c. lblPay.Text = decPay.ToString("D2")

d. lblPay.Text = decPay.ToString("C2")

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