Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Homework4
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { enum Level { Low, Medium, High }; public static void Main(string[] args) { string myDogsName = "Checkers"; long numLegs = 4; int numHands = 2; int numEyes = 2; double weightInPounds = 48.68954; bool isALive = true; string[] AnimalFood= {"HorseRadish", "Radish", "Turnip"}; Level myDogsLevel = Level.High; Console.WriteLine("Hello World!"); Console.Write("Dogs Name: "); Console.WriteLine(myDogsName); Console.Write("Number of Legs: "); Console.WriteLine(numLegs.ToString()); Console.Write("Number of numHands: "); Console.WriteLine(numHands.ToString()); Console.Write("Number Eyes: "); Console.WriteLine(numEyes.ToString()); Console.Write("weightInPounds: "); Console.WriteLine(weightInPounds); Console.Write("isALive: "); Console.WriteLine(isALive); Console.Write("Favorate Foods: "); Console.WriteLine(""); Console.WriteLine(AnimalFood[0]); Console.WriteLine(AnimalFood[1]); Console.WriteLine(AnimalFood[2]); Console.WriteLine(" --- --- --- "); foreach (string i in AnimalFood) { Console.WriteLine(i); } Console.Write("Favorate Foods: "); Console.WriteLine(myDogsLevel); } } }
run
|
edit
|
history
|
help
0
3
StackOverflow Generic
Pet Name Generator
4
Inheritance Fallback
*271*271#
to find all substring
Command design pattern
Problem_fb_series
My quad calc