using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int i; // stores a number
float f; //stores a single floating point precision value
double d; // stores a double precision value
bool b; // stores value -true or false
char c; // stores a single charachter
String s; //stores more than one charachter
i = 10;
f = 1.001F;
d = 25.55;
b = false;
c = 'h';
s = "Hello";
Console.WriteLine("Printing all type of Data types and their values");
Console.WriteLine("Value of i is :{0}", i);
Console.WriteLine("Value of f is :{0}", f);
Console.WriteLine("Value of d is :{0}", d);
Console.WriteLine("Value of b is :{0}", b);
Console.WriteLine("Value if c is : {0}", c);
Console.WriteLine("Value of s is :{0}", s);
Console.ReadKey();
}
}
}This program show different Data Types Program Example
