c# if negative return 0 code example
Example 1: if number negative c sharp
bool positive = number > 0;
bool negative = number < 0;
Example 2: c# return true if positive, return false if negative
bool positive = number > 0;
bool negative = number < 0;