What did we learn from this chapter?

Let us summarize what we learned in this chapter of the book:

  • Inserting a text: var str = Console.ReadLine();.
  • Inserting a whole number: var num = int.Parse(Console.ReadLine());.
  • Inserting a real number: var num = double.Parse(Console.ReadLine());.
  • Calculations with numbers and using the suitable arithmetic operators [+, -, *, /, ()]: var sum = 5 + 3;.
  • Printing a text by placeholders on the console: Console.WriteLine("{0} + {1} = {2}", 3, 5, 3 + 5);.

results matching ""

    No results matching ""