If we need to compare X to a value 3 how do we do it in C#

A) If (X==3)
B) If (X=3)
C) If (X.equals(3) )

Showing Answers 1 - 7 of 7 Answers

Aby Kurian

  • Jan 29th, 2007
 

if x is an integer then
if (x==3){your code}
if x is string the convert value to integer then apply this code

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions