using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Threading;
using System.IO;
namespace CSharpProgram
{
class AkbTechie
{
static void Main(string[] args)
{
// Declare and initialize different types of variables
int i = 20;
float f = 23.3f;
double d = 50.2346;
char c = 'M';
string s = "Hello World!";
bool b = true;
// Print the values of the variables
Console.WriteLine("Integer Value is : " + i);
Console.WriteLine("Float Value is : " + f);
Console.WriteLine("Double Value is : " + d);
Console.WriteLine("Character Value is : " + c);
Console.WriteLine("String Value is : " + s);
Console.WriteLine("Boolean Value is : " + b);
Console.ReadKey();
}
}
}
//output:-
//Integer Value is : 20
//Float Value is : 23.3
//Double Value is : 50.2346
//Character Value is : M
//String Value is : Hello World!
//Boolean Value is : True
0 टिप्पणियाँ