摘要: 数组和循环 int[] a = new int[10];//创建一个数组 元素10个 a[0] = 1; a[1] = 1; int i = 0; for (i = 2; i < 10; i++)//for循环,先循环后判断 { a[i] = a[i - 1] + a[i - 2]; } i = 0 阅读全文
posted @ 2022-07-02 17:29 枫悠 阅读(95) 评论(0) 推荐(0)
摘要: C# 常用数据类型数据类型 int 整数 using System namespace App1 { class Program { int num1; num1=int.MaxValue; Console.WriteLine(num1); num1=num1+1; /* 电脑在计算时,使用补码进行 阅读全文
posted @ 2022-07-02 14:43 枫悠 阅读(108) 评论(0) 推荐(0)