tw-oocamp-201512 / the-code-of-you

使用你最喜欢的语言写一段代码来介绍你自己,提交在Issues里
1 stars 1 forks source link

Kaihang's Intro #14

Open ztmdsbt opened 8 years ago

ztmdsbt commented 8 years ago
using System;

namespace IntroOfMine
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Your name:");
            var name = Console.ReadLine();

            Console.WriteLine("Age:");
            var age = Console.ReadLine();

            Console.WriteLine("Work years :");
            var workYears = Console.ReadLine();

            Console.WriteLine("Your skills: ");
            var skills = Console.ReadLine();

            intro(name, age, workYears, skills);

            Console.ReadKey();
        }

        static void intro(string name, string age, string workYears, string skills)
        {
            Console.WriteLine(String.Format("My name is{0}, {1} years old. I've worked {2} years. Here are my skills{3}. I love coding. Nice to meet you."
                , name, age, workYears, skills));
        }
    }
}
ztmdsbt commented 8 years ago

My name is Kaihang, 30 years old. I've worked 9 years. Here are my skills C#, Ruby. I love coding. Nice to meet you.