課程
/后端開發(fā)
/C#
/C#開發(fā)輕松入門
好難,
2017-03-18
源自:C#開發(fā)輕松入門 4-10
正在回答
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? { ??
? ? ? ? ? ? for (int i=1;i<=7;i++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? for (int a = 1; a <= 7; a++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? if ( ?a == i||a + i == 8)?
? ? ? ? ? ? ? ? ? ? { Console.Write("O"); }
? ? ? ? ? ? ? ? ? ? else { Console.Write("."); }
? ? ? ? ? ? ? ? }Console.WriteLine();
? ? ? ? ? ? } ? ? ? ?
? ? ? ? }
? ? }
}
舉報
本門課程是C#語言的入門教程,將帶你輕松入門.NET開發(fā)
3 回答怎么將編寫好的程序輸出成.exe
2 回答怎么找到自己已編寫完的程序原文件??
3 回答控制臺應(yīng)用程序跟實(shí)際寫程序有什么關(guān)系呢
2 回答這題怎么寫?
3 回答寫完程序呼不出記事本
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-03-18
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? { ??
? ? ? ? ? ? for (int i=1;i<=7;i++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? for (int a = 1; a <= 7; a++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? if ( ?a == i||a + i == 8)?
? ? ? ? ? ? ? ? ? ? { Console.Write("O"); }
? ? ? ? ? ? ? ? ? ? else { Console.Write("."); }
? ? ? ? ? ? ? ? }Console.WriteLine();
? ? ? ? ? ? } ? ? ? ?
? ? ? ? }
? ? }
}