Start learning free

LESSON 7 OF 413 · WELCOME TO C#

Strings vs Numbers in C#

Lesson

  • C# distinguishes between numbers and strings!


  • In C#, "15" (with quotes) is considered a string, while 15 (without quotes) is considered a number (an int).


  • For example, computers can perform mathematical operations on numbers, but not on strings. More on this in the next lessons.

STEP 1 OF 1
    Ctrl + Enter to check