Store numbers rather than text.
The data type for numeric values is called int.
This is the data type for whole numbers (integers).
numbers are entered without quotes.
using System; class Program/*from ww w.j a v a 2 s.com*/ { static void Main(string[] args) { // Variable for storing number (with initial value) int number = -12; // Output of value of the variable Console.WriteLine("Value of the variable: " + number); // Precalculation of result (into a variable) int sum = 1 + 1; // Output to the user Console.WriteLine("One and one is: " + sum); } }