using System;
//nallable 형식
//namespace Nullable
//{
// class HelloWorld
// {
// static void Main()
// {
// int? a = null;
// Console.WriteLine(a.HasValue);//값을 가지고 있느냐?
// Console.WriteLine(a != null);// 값이 널이 아니냐?
// a = 3;
// Console.WriteLine(a.HasValue);//값을 가지고 있느냐?
// Console.WriteLine(a != null);//값이 널이 아니냐?
// Console.WriteLine(a.Value); //a 의 값을 내놓아라
// }
// }
//}
//var 형식을 공부해 보자
//namespace UsingVar
//{
// class HelloWorld
// {
// static void Main()
// {
// var a = 20;
// Console.WriteLine(“Type : {0}, Value : {1}”, a.GetType(), a);
// var b = 3.1414213;
// Console.WriteLine(“Type : {0}, Value : {1}”, b.GetType(), b);
// var c = “Hello, World!”;
// Console.WriteLine(“Type : {0}, Value : {1}”, c.GetType(), c);
// var d = new int[] { 10, 20, 30 };
// Console.Write(“Type : {0}, Value :”, d.GetType());
// foreach (var e in d)
// {
// Console.Write("{0}", e);
// }
// Console.WriteLine();
// }
// }
//}
//// 기본 연산자 공부
//namespace ArtimaticOperation
//{
// class HelloWorld
// {
// static void Main()
// {
// int a = 111 + 222;
// Console.WriteLine(“a :{0}”, a);
// int b = a - 100;
// Console.WriteLine(“b: {0}”, b);
// int c = b * 100;
// Console.WriteLine(“c:{0}”, c);
// double d = c / 6.3;
// Console.WriteLine(“d:{0}”, d);
// Console.WriteLine(“22/7 = {0}({1})”, 22 / 7, 22 % 7);
// }
// }
//}
////증가 연산자와 감소 연산자
//namespace InDecOperator
//{
// class HelloWorld
// {
// static void Main(string[] args)
// {
// int a = 10;
// Console.WriteLine(a++);
// Console.WriteLine(++a);
// Console.WriteLine(a–);
// Console.WriteLine(–a);
// }
// }
//}
//// 문자열 결합 연산자
//namespace StringConcatenate
//{
// class HelloWorld
// {
// static void Main()
// {
// string result = “123” + “456”;
// Console.WriteLine(result);
// result = “Hello” + " " + “World”;
// Console.WriteLine(result);
// }
// }
//}
////관계 연산자
//namespace RelationOperator
//{
// class HelloWorld
// {
// static void Main(string[] args)
// {
// Console.WriteLine(“3>4 : {0}”, 3 > 4);
// Console.WriteLine(“3>=4 : {0}”, 3 >= 4);
// Console.WriteLine(“3<4 : {0}”, 3 < 4);
// Console.WriteLine(“3<=4 : {0}”, 3 <= 4);
// Console.WriteLine(“3==4 : {0}”, 3 == 4);
// Console.WriteLine(“3!=4 : {0}”, 3 != 4);
// }
// }
//}
////논리 연산자 연습
//namespace LogicalOperator
//{
// class HelloWorld
// {
// static void Main()
// {
// Console.WriteLine(“Testing &&….”);
// Console.WriteLine(“1>0 && 4<5 : {0}”, 1 > 0 && 4 < 5);
// Console.WriteLine(“1>0 && 4>5 : {0}”, 1 > 0 && 4 > 5);
// Console.WriteLine(“1==0 && 4>5 : {0}”, 1 == 0 && 4 > 5);
// Console.WriteLine(“1==0 && 4<5 : {0}”, 1 == 0 && 4 < 5);
// Console.WriteLine("\nTesting ||…");
// Console.WriteLine(“1>0 || 4<5 : {0}”, 1 > 0 || 4 < 5);
// Console.WriteLine(“1>0 || 4>5 : {0}”, 1 > 0 || 4 > 5);
// Console.WriteLine(“1==0 || 4>5 : {0}”, 1 == 0 || 4 > 5);
// Console.WriteLine(“1==0 || 4<5 : {0}”, 1 == 0 || 4 < 5);
// Console.WriteLine("\nTesting ! …");
// Console.WriteLine("!True :{0}", !true);
// Console.WriteLine("!False:{0}", !false);
// }
// }
//}
////조건 연산자
//namespace ConditionalOperator
//{
// class HelloWorld
// {
// static void Main()
// {
// string result = (10 % 2) == 0 ? “짝수” : “홀수”;
// Console.WriteLine(result);
// }
// }
//}