bool
Boolean data type is defined by using bool keyword. Boolean value may be true or false . We define the Boolean variable by using bool key word.
eg. bool Isgood=false;
int
Integer data type is defined by using int keyword. Int variable can have only integer data. We can’t store any data except an integer.
eg: int age=23;
char
Character data type is used to store a single character. We write the character data within the single quotes. Char keyword is used to define the character data type.
eg. char Firstletter=’s’;
string
String keyword is used to store the string value. We write the string data within the double quotes .
eg. string name=”shreesh”;
Float is one of the data types, used to store the numbers, which may or may not contain the decimals.
Eg float weight=20.5F;