2
Answers

For condition by comparing between 2 var. using %

Omar Bahaa

Omar Bahaa

6y
628
1
Hello, I am new to Csharp and programming in general, and i have a quick question.
I want to say if "x" is greater than 50% of "y" . I wonder if the below is right.
 
if ( x > 50% y)
 
{
Console.WriteLine("something");
}
 
Thank you in advance.
Answers (2)