标签:c#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int var = 1; if(var ==1) { Console.WriteLine("var=1"); } else if (var ==2) { Console.WriteLine("var=2"); } else if (var == 3) { Console.WriteLine("var=3"); } else { Console.WriteLine("var is other number"); } Console.ReadLine(); } } }
本文出自 “Ricky's Blog” 博客,请务必保留此出处http://57388.blog.51cto.com/47388/1650535
标签:c#
原文地址:http://57388.blog.51cto.com/47388/1650535