Type Basics - A type defines the blueprint for a value. - CSharp Language Basics

CSharp examples for Language Basics:Data Type

Introduction

The following code uses two literals of type int with values 12 and 30.

We also declared a variable of type int whose name was x:

Demo Code

using System;/* w ww.  j  a v a 2  s. c o  m*/
class Test
{
   static void Main(){
      int x = 12 * 30;
      Console.WriteLine (x);
   }
}

Result


Related Tutorials