using System;
namespace APRON
{
class Class1
{
[STAThread]
staticvoid Main(string[] args)
{
int myValue = 0; // Variable that will hold the value // Ask our question
Console.WriteLine("How many computers do you have? (type in an integer)");
myValue = Convert.ToInt32(Console.ReadLine()); // Input
Console.WriteLine("You have " + myValue); // Output
Console.ReadLine(); // Wait for a key to be pressed
}
}
}
Download C# Source Code
I hope you found this Visual C# .Net tutorial useful!
Don't forget to mention Apron Tutorials in your References!