ʵÑéÒ»£ºÊµ¼ù²Ù×÷ÌâµÄµÚ2СÌâ´úÂ룺usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){Console.Write(ÇëÊäÈëÐÕÃû£º);Console.WriteLine(Console.ReadLine()+¡±£¬ÄãºÃ£¡¡±);Console.Read();}}}ʵÑé¶þ£ºÊµ¼ù²Ù×÷Ìâ´úÂ룺usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){students=newstudent();s.number=001;s.name=ÀîÃ÷;s.sex=ÄÐ;s.cl=Èí¼þ9801;s.scoer=90;Console.Write({0}{1},s.cl,s.name);Console.Write(10ÔÂ12ÈÕ);s.study();Console.ReadLine();}}classstudent{publicintnumber;publicstringname;publicstringsex;publicstringcl;publicstringscoer;publicvoidstudy(){Console.WriteLine(ÕýÔÚÉÏ¿Î);}}}ʵÑéÈý£º1£©Çó36µÄÒò×ÓÊý´úÂ룺usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){inti;for(i=1;i37;i++)if(36%i==0)Console.WriteLine(i);Console.ReadLine();}}}2)Çó1µ½100ÊýµÄºÍ³ýÁË3µÄ±¶Êý´úÂ룺usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication2{classProgram{staticvoidMain(string[]args){intn,sum=0;for(n=1;n=100;n++){if(n%3==0)continue;elsesum+=n;}Console.WriteLine(sum);Console.ReadLine();}}}3)ÇóÁ½¸öÕýÕûÊýµÄ×îС¹«±¶Êý´úÂ룺usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication3{classProgram{staticvoidMain(string[]args){intn,m,t,i;n=int.Parse(Console.ReadLine());m=int.Parse(Console.ReadLine());if(nm)t=n;elset=m;for(i=t;i=n*m;i++){if(i%n==0&&i%m==0)break;}Console.WriteLine(i);Console.ReadLine();}}}ʵÑéËÄ£º×öÒ»¸ö´°ÌåÏñÕâÑùµÄusingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplication1{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidbutton1_Click(objectsender,EventArgse){strings=null;if(textBox1.Text==)MessageBox.Show(ÇëÊäÈëÐÕÃû);elseif(textBox2.Text==)MessageBox.Show(ÇëÊäÈëÃÜÂë);elseif(checkBox1.Checked)s=checkBox1.Text+;if(checkBox2.Checked)s+=checkBox2.Text+;if(checkBox3.Checked)s+=checkBox3.Text;if(s==null)MessageBox.Show(ÇëÊäÈëÐËȤ°®ºÃ);elseif(radioButton1.Checked)listBox1.Items.Add(textBox1.Text+textBox2.Text++ÄÐ+s+toolStripComboBox1.SelectedItem+\n);elselistBox1.Items.Add(textBox1.Text+textBox2.Text++Å®+s+toolStripComboBox1.SelectedItem+\n);}privatevoid×ÖÌåToolStripMenuItem_Click(objectsender,EventArgse){FontDialogfd=newFontDialog();if(fd.ShowDialog()==DialogResult.OK)listBox1.Font=fd.Font;}privatevoidÑÕÉ«ToolStripMenuItem_Click(objectsender,EventArgse){ColorDialogfa=newColorDialog();if(fa.ShowDialog()==DialogResult.OK)listBox1.ForeColor=fa.Color;}privatevoidbutton2_Click(objectsender,EventArgse){listBox1.Items.Remove(listBox1.SelectedItem);}privatevoidн¨ToolStripMenuItem_Click(objectsender,EventArgse){Formf1=newForm();f1.Show();}privatevoidtoolStripButton3_Click(objectsender,EventArgse){this.BackColor=Color.Red;}privatevoidtoolStripButton4_Click(objectsender,EventArgse){this.BackColor=Color.Blue;}privatevoidtoolStripButton5_Click(objectsender,EventArgse){this.BackColor=Color.Yellow;}privatevoid×÷ÕßToolStripMenuItem_Click(objectsender,EventArgse){MessageBox.Show(08301202---·½Àö);}privatevoidtoolStripButton1_Click(objectsender,EventArgse){this.BackColor=Control.DefaultBackColor;}privatevoidtoolStripComboBox1_Click(objectsender,EventArgse){}}}ʵÑéÎ壺1)£º´´½¨Ò»¸öcustomerÀ࣬°üº¬ÈçÏÂÐÅÏ¢£º¿Í»§ÐÕÃû£ºsname;¿Í»§ÐÔ±ð£ºsex;¿Í»§ÄêÁ䣺age¿Í»§Êµ·¢¹¤×Ê£ºsfgz.ͨ¹ýcustomerÀ࣬´´½¨Ò»¸öcustomer¶ÔÏ󣬲¢Êä³ö´Ë¶ÔÏóÐÅÏ¢µÄ¸÷¸öÐÅÏ¢.usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){customerp1=newcustomer();p1.name=·½Àö;p1.sex=Å®;p1.age=20;p1.sfgz=1000;Console.WriteLine({0},{1},{2},{3},p1.name,p1.sex,p1.age,p1.sfgz);Console.Read();}}classcustomer{publicstringname;publicstringsex;publicintage;publicintsfgz;}}2)£º´´½¨Ò»¸öÔ²µÄÀà¡£°üº¬ÒÔϼ¸¸öÐÅÏ¢£ºÔ²ÖÜÂÊ:PI£»°ë¾¶£ºradiusʹÓÃSetRadius·½·¨·µ»Ø°ë¾¶µÄÖµ,ʹÓÃarea·½·¨½«Ô²µÄÃæ»ý¼ÆËã³öÀ´¡£usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication2{classProgram{staticvoidMain(string[]args){yuanp1=newyuan();p1.SetRadius(2);Console.WriteLine(p1.area());Console.Read();}}classyuan{constdoublepi=3.1415926;publicintradius;publicvoidSetRadius(intrad){radius=rad;}publicdoublearea(){doubles;s=pi*radius*radius;returns;}}}3)£ºÉè¼ÆÒ»¸ö³ÌÐòʹÓÃpersonÀ࣬ÆäÀàÖаüº¬ÈçÏÂÐÅÏ¢£ºÐÕÃû£ºname£»ÑªÐÍ£ºblood£»´´½¨Ò»¸öperson¶ÔÏópÈçÏ£ºpersonp=newperson(¡°½ÌΡ±,¡°AB¡±)£»È»ºó£¬Ê¹ÓÃprintname·½·¨½«ÐÕÃûÏÔʾ³öÀ´¡£Ê¹ÓÃprintblood·½·¨½«ÑªÐÍÏÔʾ³öÀ´¡£usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){stringp2,p3;personp1=newperson(½ÌÎ,AB);p2=p1.printname();p3=p1.printblood();Console.WriteLine(ÐÕÃû£º+p2+\t+ѪÐÍ£º+p3);Console.Read();}}classperson{publicstringname;publicstringblood;publicperson(stringm,stringn){name=m;blood=n