bool 1

bool

int mynumber 			= 10;
double mydecima 		= 10.1405;
string mytext 			= "10.1405 hello true";
bool myon_off 			= true;
char mysinglecharacter 	= 't';

Here is what the above code is Doing:
1. We are creating a variable called mynumber and assigning it the value of 10.
2. We are creating a variable called mydecimal and assigning it the value of 10.1405.
3. We are creating a variable called mytext and assigning it the value of “10.1405 hello true”.
4. We are creating a variable called myon_off and assigning it the value of true.
5. We are creating a variable called mysinglecharacter and assigning it the value of ‘t’.

Similar Posts