/*
This program shows how the _Bool data type and bool data type works.
*/


#include <stdio.h>

// to use the bool datatype, we have to include stdbool.h
#include <stdbool.h>


int main(void){
	//the _Bool data type doesn't require any special include files
	//we declare two variables: isMonday and isWednesday
	_Bool isMonday;
	_Bool isWednesday;

	//we set isMonday equal to 1 because it is Monday (true)
	isMonday = 1;

	//we set isWednesday equal to 0 because it is not Wednesday (false)
	isWednesday = 0;

	//we can also use the bool datatype if we use the include
	bool isMonday_2, isWednesday_2;
	//this data type lets us directly assign true or false
	isMonday_2 = true;
	isWednesday_2 = false;

	//no matter what type we use, we print them out as integers
	//and it will print out as 1 if it's true or 0 if it's false
	printf("Is it Monday? %d %d\n",isMonday, isMonday_2);
	printf("Is it Wednesday? %d %d\n",isWednesday, isWednesday_2);
}

