C# provides a rich set of built-in as well as user defined data types. Most of the built-in data types are described as follows:
To learn more types of built-in data types please refer here.
User Defined data types are structures (struct) and classes (class). This will be covered later in the course.
In programming, a variable is a container (storage area) to hold data.
To indicate the storage area, each variable should be given a unique name (identifier). For example,
int val = 10;
// Here, val is a variable of the int data type, and we have assigned an integer value 10 to it.
// Also, we can change the value of the variable
val = 15;
You have to input 5 lines containing values: int, long, char, float and double respectively and print them in the same order in new line.
Example Input:
5
1234567891231
z
24.23
1214523.028352
Example Output:
5
1234567891231
z
24.23
1214523.028352