欢迎来到天天文库
浏览记录
ID:40740284
大小:90.00 KB
页数:18页
时间:2019-08-07
《C#表达式和语句》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、C#表达式和语句2.-运算符usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo7{classProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=123;num2=456;num3=num1-num2;Console.WriteLine(num3);System.Console.Readline();}}}3.*运算符4./运算符usingSystem;usingSystem.
2、Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo8{classProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=123;num2=456;num3=num1/num2;Console.WriteLine(num3);Console.WriteLine(num2/num1);System.Console.Readline();}}}5.%运算符usingSystem;usingSystem.Collections.Gen
3、eric;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo9{classProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=123;num2=456;num3=num1%num2;Console.WriteLine(num3);Console.WriteLine(num2%num1);System.Console.Readline();}}}6.&运算符usingSystem;usingSystem.Collections.Generic;usingSyste
4、m.Linq;usingSystem.Text;namespaceCh5Demo10{classProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=3;num2=6;num3=num1&num2;Console.WriteLine(num3);System.Console.Readline();}}}7.
5、运算符usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo11{clas
6、sProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=3;num2=6;num3=num1
7、num2;Console.WriteLine(num3);System.Console.Readline();}}}8.^运算符usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo12{classProgram{staticvoidMain(string[]args){intnum1,n
8、um2,num3;num1=3;num2=6;num3=num1^num2;Console.WriteLine(num3);System.Console.Readline();}}}9.<<运算符usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo13{classProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=3;num2=6;num3=num1<9、.WriteLine(num3);System.Console.Readline();}}}10.>>运算符usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo14{classProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=3;num2=48;num3=num1>>num2;Consol
9、.WriteLine(num3);System.Console.Readline();}}}10.>>运算符usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCh5Demo14{classProgram{staticvoidMain(string[]args){intnum1,num2,num3;num1=3;num2=48;num3=num1>>num2;Consol
此文档下载收益归作者所有