码迷,mamicode.com
首页 > 其他好文 > 详细

Function 1 - hello world

时间:2015-06-24 14:36:42      阅读:86      评论:0      收藏:0      [点我收藏+]

标签:

Function 1 - hello world

Make a simple function called greet that returns the most-famous "hello world!".

Although this has been thought as a simple exercise for beginners, other people chimed in and loved to show off how wonderfully complicated you can write "hello world!" - so go for it, create the most beautiful "hello world!"

public static class Kata
{
  // Write a public static method "greet" that returns "hello world!"
  public static string greet()
  {
    return "hello world";
  }
}

 

Function 1 - hello world

标签:

原文地址:http://www.cnblogs.com/chucklu/p/4597450.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!