for (int x = 1; x <= 7; x++)
{
for (int y = 7; y >= 1; y--)
{
if (x + y == 8 || x == y)
Console.Write("o");
else
{
Console.Write(".");
}
}
Console.WriteLine();
}
{
for (int y = 7; y >= 1; y--)
{
if (x + y == 8 || x == y)
Console.Write("o");
else
{
Console.Write(".");
}
}
Console.WriteLine();
}
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x > y)
continue;
Console.Write(x);
}
Console.WriteLine();//换行
}
{
for (int x = 1; x <= 7; x++)
{
if(x > y)
continue;
Console.Write(x);
}
Console.WriteLine();//换行
}
2019-03-08
double salary = 6000.00;//基本工资
double prize = 3200.00;//奖金
double tax = 4500.00;//交税
Console.Write("我的工资奖金总额是{0}元",salary + prize);
Console.WriteLine("我的税后收入是{0}元",salary +prize- tax);
double prize = 3200.00;//奖金
double tax = 4500.00;//交税
Console.Write("我的工资奖金总额是{0}元",salary + prize);
Console.WriteLine("我的税后收入是{0}元",salary +prize- tax);
2019-03-05
已采纳回答 / 丿沧皇逆刹
你可以选择把浏览器关了 用360或管家清理垃圾, 然后去工具箱选择网络修复,再打开你浏览器看看,如果还是不行的话你可以去360或管家体检一下哪里出问题。
2019-03-03
最新回答 / qq_精慕门2535300
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { for (int y = 1; y <= 7; y++) { for (int x = 1; x ...
2019-03-03
static void Main(string[] args)
{
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
}
{
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
}
2019-02-28