1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApp1 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 /* 14 int x; 15 int y; 16 17 x = 7; 18 y = x + 3; 19 20 Console.WriteLine(y); 21 Console.ReadLine(); 22 */ 23 24 // 注释掉一行代码 25 26 /* 27 注释掉多行代码 28 */ 29 30 Console.WriteLine("What is your name?"); 31 Console.Write("Type your first name: "); 32 String myFirstName; 33 myFirstName = Console.ReadLine(); 34 35 String myLastName; 36 Console.WriteLine("What is your last name"); 37 Console.Write("Type your last name: "); 38 myLastName = Console.ReadLine(); 39 40 41 } 42 } 43 }
varible
猜你喜欢
转载自www.cnblogs.com/ijwy/p/10195238.html
今日推荐
周排行