for(int x=1;x<=7;x++)
{
for(int y=1;y<=7;y++)
{ Console.Write(x==y||x+y==8?"O":".");
}
Console.WriteLine();//請完善代碼
}
{
for(int y=1;y<=7;y++)
{ Console.Write(x==y||x+y==8?"O":".");
}
Console.WriteLine();//請完善代碼
}
最新回答 / weixin_慕碼人3003085
bool其實就是“邏輯型”啦,有兩個值,一個是真、是、對的"true",一個是假、非、錯的"false",注意賦值都必須為小寫字母。
2023-03-03
最新回答 / 慕村9069391
常用的有?char ,存儲用 '' (單引號)括起來的一個字符string ,存儲用“”(雙引號)括起來的一串字符int ,存儲整數double ,存儲小數bool,true 和 false 表示。
2023-02-11
string temp;
temp = today;
today = tomorrow;
tomorrow = temp;
//請在這里補充代碼,實現變量today和tomorrow的交換
temp = today;
today = tomorrow;
tomorrow = temp;
//請在這里補充代碼,實現變量today和tomorrow的交換
最新回答 / weixin_慕九州3115940
?{? ? ? ? ? ? int[] score = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 };? ? ? ? ? ? string[] name = new string[] { "景珍", "林惠洋", "成蓉", "洪南昌", "龍玉民", "單江開", "田武山", "王三明" };? ? ? ? ? ? int sum = 0, avg = 0;? ? ? ? ? ? for (int i = 0; i< score.Length; i+...
2022-12-04
最新回答 / weixin_慕仙0016014
你好,朋友!你的問題是標點符號不對在?",高于平均分的有:\n"一句中英文引號內的逗號(,)和冒號(:)都是中文狀態下,應該把它們改成英文狀態下的逗號和冒號。
2022-11-21
hahahahahah 笑死我了
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x=1;
bool a = ++x * x > 3;
Console.WriteLine(a);
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x=1;
bool a = ++x * x > 3;
Console.WriteLine(a);
}
}
}
2022-11-08
最新回答 / 愛吃魚燜豆腐的H先生
小問題,注意占位符方式一Console.Write("平均分是{1},{0}", "高于平均分的有: ", avg);方式二Console.Write("平均分是{0},高于平均分的有:?", avg);
2022-11-02
最新回答 / 慕少0559658
Console.WriteLine()與Console.Write()不同,后者不換行,而前者會在打印之后換行。這里使用的是WriteLine,會在打印之后換行,而程序輸出結果要求不換行,因此把WriteLine改為Write就可以了。
2022-10-21