Which of the following statements formats the contents of the txtSalesTax control with a percent sign and two digits to the right of the decimal?a) txtSalesTax.Text = Format(txtSalesTax, "Percent")b) txtSalesTax.Text = Format(txtSalesTax, "Fixed")c) txtSalesTax.Text = Format(txtSalesTax.Text, "Percent")d) txtSalesTax.Text = Format("Percent", txtSalesTax.Text)

Respuesta :

Answer:

None of the above is the correct answer.

Explanation:

In c #, there are different formats for formatting object values (in our case txtSalesTax) using the Format () method.

The complete syntax is as follows:

Format (string, object, object)

Where  

string = txtSalesTax

Object = Percent

Object = n2