24846人加入学习
(72人评价)
C#编程-第一季-编程基础-宇宙最简单2021最新版

制作完成于2021年10月10日,使用Visual Studio 2019

价格 免费
using System;

namespace _005_练习题
{
    class Program
    {
        static void Main(string[] args)
        {
            //int a = Convert.ToInt32(Console.ReadLine());
            //int b = Convert.ToInt32(Console.ReadLine());
            //int c = a + b;
            //Console.WriteLine(c);

            int a = Convert.ToInt32(Console.ReadLine());
            int b = Convert.ToInt32(Console.ReadLine());
            int c = (a + b) / 2;
            Console.WriteLine(c);
        }
    }
}

 

[展开全文]

变量名不能用特殊字符

 

[展开全文]

int a=convert.toint(console.readline());

int b=convert.toint(console.readline());

int c= a+b;

[展开全文]

第三题
12356

第四题A

第五题A

[展开全文]

@:取消转义字符

例:D://test;     相当于@D:/test;

[展开全文]

 命名是以字母、数字、下划线组成,不能以数字开头

 

[展开全文]
LSCqmu · 2022-03-20 · 022-编程题 0

让用户计算两个整数的和

int a = Convert.ToInt32(Console.ReadLine());

int b = Convert.ToInt32(Console.ReadLine());

int c = a+b;

Console.WriteLine(c);

[展开全文]

可以计算乘法,+改成*ha

[展开全文]

int a = Convert.ToInt32(Console.ReadLine());

 

[展开全文]

授课教师

SiKi学院老师

课程特色

下载资料(1)
视频(118)
图文(1)