我这样写的
for (int x=0;x<=6;x++)
{
for(int y=0;y<=6;y++)
{
if (y==x||y==6-x)
Console.Write('o');
else
Console.Write('.');
}
Console.WriteLine();
for (int x=0;x<=6;x++)
{
for(int y=0;y<=6;y++)
{
if (y==x||y==6-x)
Console.Write('o');
else
Console.Write('.');
}
Console.WriteLine();
for(int x=1;x<=7;x++)
{
for(int y=1;y<=7;y++)
{
if(x==y||x+y==8)
Console.Write("o");
else
Console.Write(".");
}
Console.WriteLine();
}
{
for(int y=1;y<=7;y++)
{
if(x==y||x+y==8)
Console.Write("o");
else
Console.Write(".");
}
Console.WriteLine();
}
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);
2021-08-13