forked from truecodersio/MethodsExercise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (25 loc) · 1.16 KB
/
Program.cs
File metadata and controls
32 lines (25 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace MethodsExercise
{
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Welcome to this TrueCoders story.");
Console.Write("Enter thy name, brave warrior: ");
string Name = Console.ReadLine();
Console.Write("What tis your favorite color? : ");
string Color = Console.ReadLine();
Console.Write("What tis your steed's name? : ");
string Animal = Console.ReadLine();
Console.Write("Who is thy favorite jester?: ");
string Jester = Console.ReadLine();
Console.WriteLine($"I am a True Coder's Warrior. My name is {Name}. The color of my shield is {Color}. " +
$"The name of my transportation is {Animal}. My favorite rock band is {Jester}.");
}
static string MethodsExercise(string Name, string Color, string Animal, string Jester)
{
Console.WriteLine($"{Name}, {Color}, {Animal}, {Jester}");
return $"{Name}, {Color}, {Animal}, {Jester}";
}
}
}