// int n = Console.Read ();
// 讀取一個字符硅蹦,隨意按下一個字符后終止輸入操作
// Console.WriteLine ("剛剛輸入的n的值為{0}",n);
//讀取一行字符秸妥,按回車結束輸入操作
// string str = Console.ReadLine ();
// Console.WriteLine ("剛剛輸入的str的值為" + str);
// Console.Write("你好\n");//\n換行符
// Console.WriteLine ("世界");
// //類型轉化
// //隱式轉化,強制轉化
// float a = 1;
// double b = 1.2f;
// a = (float)b;
// int c = (int)1.7f;
//
// string num = "123";
// int d = int.Parse (num);
//
// //獲取占用內存 byte字節(jié) bit位 八進制
// Console.WriteLine("int ->{0}",sizeof(int));
//運算符
// +? -? *? /? %? +=? -=? *=? /=? >? <? >=? <=? ?: ++ -- && \\? !? & \ ^? <<? >>
// int a = 1;
// int b = 2, c = 3;
// c = a + b;
// float d = 5;
//比較
// int a = 34,b = 45;
// bool c = a > b;
// c = a >= b;
// c = a <= b;
// c = a != b;
// c = a == b;
//++ -- 一元運算符
//++a,先自加吏恭,再賦值辖佣,a++,先賦值枷莉,再自加
//三元運算符 ?? :
// int a = 10 , b = 9;
// int c = a > b ? 1 : 0;//如果條件成立椎扬,取前者(c=1),不成立沐兵,去后者(c=0).
//邏輯運算符 && \\ !
// bool isRight = false;
// Console.WriteLine ("{0}",!isRight);
//
// int a = 2, b = 3, c = 4;
// if(a++>=3 ||--c<=4){
// Console.WriteLine ("a={0},c={0}", a, c);
// }
// if(a++>2&&--c<=4){
// Console.WriteLine ("a={0},c={1}",a,c);
// }
// Console.WriteLine ("a={0},c={1}",a,c);
//按位運算 & | !
//&
// 1 1 0 0
//1 0 0 1
//1 0 0 0
//按位異或^
//1 1 0 0
//0 1 0 1
//1 0 0 1
//按位取反~
int a? = 12;//00001111
int b = 60; //00111100
//00001100? &
//00111111? ? |
//00110011? ^
//11001100? ~
int c = a & b;
// Console.WriteLine ("{0}",c);
//<< >>按位移動
int d = a >> 2;
int e = b << 2;
Console.WriteLine ("{0}",e);