https://www.youtube.com/watch?v=_BegVK2IhMs&list=PLO56HZSjrPTB4NxAsEP8HRk6YKBDLbp7m&index=12
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
int min = int.MinValue;
int max = int.MaxValue;
WriteLine(min);
WriteLine(max);
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
sbyte sb = 127;
short st = 32767;
int i = int.MaxValue;
long l = long.MaxValue;
WriteLine("{0},{1},{2},{3}", sb, st, i, l);
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
byte b = byte.MaxValue;
ushort s = ushort.MaxValue;
uint i = uint.MaxValue;
ulong l = ulong.MaxValue;
WriteLine("{0},{1},{2},{3}", b, s, i, l);
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
double d1 = 3.141592;
double d2 = 3.141592D;
double d3 = 3.141592d;
WriteLine("{0}, {1}, {2}", d1, d2, d3);
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
float f1 = 3.141592F;
float f2 = 3.141592f;
WriteLine("{0}, {1}", f1, f2);
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
decimal money1 = 12.34m;
decimal money2 = 12.34M;
WriteLine("{0}, {1}", money1, money2);
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
int? x = null;
double? y = null;
WriteLine("{0}, {1}",x, y);
}
}
}