Complete newbie in programming but trying to write a program where the user inputs a decimal and it gets turned in to the closest integer.
Here is my code, I'm guessing I have the conversion all wrong?
Console.WriteLine(" Write a Decimal: ");
double decimalTal = Convert.ToDouble(Console.ReadLine());
double helTal = Math.Round(decimalTal);
Console.WriteLine(helTal);
Console.ReadLine();