/*c# basic program to declare different type of variables andassigning them with the values and then print the values*/using System;class HelloWorld {staticvoid Main(){//declaring different type of variables and//assigning them with the valueschar char_value ='X';int int_value =100;float float_value =10.23f;string string_value ="nerdutella";//printing the values
Console.WriteLine("char_value = "+ char_value);
Console.WriteLine("int_value = "+ int_value);
Console.WriteLine("float_value = "+ float_value);
Console.WriteLine("string_value = "+ string_value);}}
Program:
Output