If the decPay variable contains the number 1200.76, which of the following statements displays the number as

Question:

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")

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

Step by Step Answer:

Question Posted: