c#简单输出
时间: 1ms 内存:128M
描述:
编写一个简单的C#程序,输出如下内容:
*********************************
*
Hello world! *
*********************************
输入:
无
输出:
*********************************
* Hello world! *
*********************************
示例输入:
示例输出:
*********************************
* Hello world! *
*********************************
提示:
参考答案(内存最优[4300]):
using System;
namespace test_path_wav
{
class Program
{
static void Main(string[] args)
{
// string a;
// a = Console.ReadLine();
Console.WriteLine("*********************************\n* Hello world! *\n*********************************");
}
}
}
参考答案(时间最优[20]):
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("*********************************");
Console.WriteLine("* Hello world! *");
Console.WriteLine("*********************************");
}
}
}
题目和答案均来自于互联网,仅供参考,如有问题请联系管理员修改或删除。