using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
double x = 13.9, y = 24.4;
Console.WriteLine(x * 0.5 + y * 0.5);
}
}
}
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
double x = 13.9, y = 24.4;
Console.WriteLine(x * 0.5 + y * 0.5);
}
}
}
2016-09-23
C#中的switch,每个分支都应该以break;结束,break的作用是跳出switch结构。但是,如果某个分支中没有语句,那么也可以不写break;
2016-09-22