Basic console calculator with four operations I'm an absolute beginner in programming, and Today I decided to put my knowledge to the test and create a basic c# calculator. I've Done it, but now I'm looking for ways to Make it more shorter and readible. If you Have any suggestions, please give them!

using System;

namespace lol
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hi! What is your name?");
            string name = Console.ReadLine();

            Console.WriteLine(name + " What do you wanna do");

            Console.WriteLine("Type \"+\" for addition");
            Console.WriteLine("Type \"-\" for subtraction");
            Console.WriteLine("Type \"*\" for multiplication");
            Console.WriteLine("Type \"/\" for division");

            string operation = Console.ReadLine();

           

            Console.Write("Now, Give me number one: ");
            double num1 = Convert.ToDouble(Console.ReadLine());

            Console.Write("Now give me number two: ");
            double num2 = Convert.ToDouble(Console.ReadLine());

            if (operation == "+")
            {
                Console.WriteLine(num1 + num2);
            }
            else if (operation == "-")
            {
                Console.WriteLine(num1 - num2);
            }

            else if (operation == "*")
            {
                Console.WriteLine(num1 * num2);
            }

            else
            {
                Console.WriteLine(num1 / num2);

            }

           

           



        }
    }
}
Compactness


use a switch statement rather than verbose if-elseif-.. statements
get rid of redundant blank lines




Readability

Avoid escaping characters.


Console.WriteLine("Type \"+\" for addition");
Console.WriteLine("Type \"-\" for subtraction");
Console.WriteLine("Type \"*\" for multiplication");
Console.WriteLine("Type \"/\" for division");



You could go with..

Console.WriteLine("Type '+' for addition");
Console.WriteLine("Type '-' for subtraction");
Console.WriteLine("Type '*' for multiplication");
Console.WriteLine("Type '/' for division");


Or..

Console.WriteLine(@"Type ""+"" for addition");
Console.WriteLine(@"Type ""-"" for subtraction");
Console.WriteLine(@"Type ""*"" for multiplication");
Console.WriteLine(@"Type ""/"" for division");




User Experience

If you ever wish to design end-user interfaces, you have to work on your lingo.  

You're off to a good start:


Console.WriteLine("Hi! What is your name?");



You slip up slightly next (forgot a question mark):


Console.WriteLine(name + " What do you wanna do");



But then you start pressuring the end-user. You expect a number, not in a moment, but Now! And you are not asking, you are demanding.


Console.Write("Now, Give me number one: ");



Also, one time with a comma and capital after it, and one time the other way around:


Console.Write("Now give me number two: ");



The user may also expect this application to crash on:


double num1 = Convert.ToDouble(Console.ReadLine());
double num2 = Convert.ToDouble(Console.ReadLine());
Console.WriteLine(num1 / num2); // when num2 is 0
Any other overflow


And nothing happens when an unknown operator is provided by the user.

The user is not able to verify the results, since the application immediately terminates after the calculation is evaluated.