加减乘除
namespace CH02_02
{
class Program
{
static void Main(string[] args)
{
float a, b, s1,s2,s3,s4;
a = 1;
b = 2;
s1 = a + b;
s2 = a - b;
s3 = a * b;
s4 = a % b;
Console.WriteLine("a+b={0},a-b={1},a*b={2},a%b={3}",s1,s2,s3,s4);
}
}
}
网友评论