zoukankan      html  css  js  c++  java
  • C#实验二

     

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace ConsoleApp2
    {
        class Program
        {
            enum MyEn { a = 101, b, c = 207, d, e, f, g };
            static void Main(string[] args)
            {
                //实验一
                //double r;
                //Console.WriteLine("请输入圆的半径");
                //r = double.Parse(Console.ReadLine());
                //Console.WriteLine("圆的面积为" + Math.PI * r * r);
                //Console.WriteLine("圆的周长为" + 2 * Math.PI * r);
    
    
                //    //实验二
                //int x = (int)MyEn.e;
                //Console.WriteLine("第五个值 = {0}", x);
                //Console.Read();
    
                //    //实验三
                //int m = 3;
                //int n = 5;
                //Console.WriteLine("第一组:");
                //bool first = ((m == m++) && (n == n--));
                //Console.WriteLine("first = {0} m = {1} n = {2}", first, m, n);
                //m = 3;
                //n = 5;
                //Console.WriteLine("第二组:");
                //bool second = ((m == ++m) || (n == n--));
                //Console.WriteLine("second = {0} m = {1} n = {2}", second, m, n);
    
                //    //实验四
                //int a = 1, b = 2, c = 3;
                //Console.WriteLine(((((c++ + --a) * b) != 2) && true));
    
            }
        }
    }
    
    作者:LightAc
    出处:https://www.cnblogs.com/lightac/
    联系:
    Email: dzz@stu.ouc.edu.cn
    QQ: 1171613053
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利。
  • 相关阅读:
    grpc(五)
    go的代码库
    grpc(四)
    grpc(三)
    grpc(二)
    grpc(一)
    java的泛型
    如何学习编程语言
    老男孩K8S集群部署(二)
    VMware虚拟机状态正常,但SecureCRT连接时显示超时的解决方法
  • 原文地址:https://www.cnblogs.com/lightac/p/11585392.html
Copyright © 2011-2022 走看看