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.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Oct 2, 2018, 1:12 AM EDT
Omar Bahaa9 reputationPosted Oct 2, 2018, 2:03 AM EDT