Horje
and operator in c# Code Example
and operator in c#
int x=10, y=5;
Console.WriteLine("----- Logic Operators -----");
Console.WriteLine(x > 10 && y < 10);
or operator in c#
int x=15, y=5;
Console.WriteLine("----- Logic Operators -----");
Console.WriteLine(x > 10 || 100 > x);
and in c#
/* && would work only if both is true for example */ bool a = 1==2 && 1=< 2; // would be false 
/* but if they are both true it would be true */ bool a = 1==1 && 1==1; // would be true
logical operators in c#
int x=20;
Console.WriteLine("----- Logic Operators -----");
Console.WriteLine(x > 10)




Csharp

Related
get connection string from web.config in c# Code Example get connection string from web.config in c# Code Example
c# randize list Code Example c# randize list Code Example
or in if statement c# Code Example or in if statement c# Code Example
c# compress string Code Example c# compress string Code Example
.net get system environment variable Code Example .net get system environment variable Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9