摘要:
public int ganyang(int cun) { if (cun == 7) { return 2; } int sum = (gan... 阅读全文
摘要:
class Program { //定义一个结构体 struct student//student就是我们自己造的新数据类型 { public int code;//public修饰符 ... 阅读全文
摘要:
while (true) { //数组:一组同类型的数据,数组是有长度的,数组是有索引的,索引从0开始 int[] shuzu = new int[7];//定义了一个长度为6的int类型的数组 R... 阅读全文
摘要:
int sum = 0; Console.Write("请输入数字:"); int shu = int.Parse(Console.ReadLine()); for (int i = 1; i <= shu; i++)//从1开始遍历... 阅读全文
摘要:
int sum = 1; Console.Write("请输入数字:"); int shu = int.Parse(Console.ReadLine()); for (int i = 1; i <= shu; i++) ... 阅读全文
摘要:
int sum = 0; Console.Write("请输入数字:"); int shu = int.Parse(Console.ReadLine()); for (int i = 1; i <= shu; i++) ... 阅读全文
摘要:
Console.WriteLine("圆珠笔 尺子 铅笔盒"); int count = 0; for (int i = 1; i <= 50; i++) { for (int j = 1; j <=... 阅读全文
摘要:
decimal hou = 0.00007M; for (int i = 1; i > 0; i++) { hou = hou * 2; if (hou > 8848) ... 阅读全文
摘要:
for (int k = 1; k <= 100; k++) { int count = 0; for (int i = 1; i <= k; i++) { ... 阅读全文
摘要:
int sum = 0; for (int k = 1; k <= 100; k++) { int count = 0; for (int i = 1; i <= k; i++) ... 阅读全文