/*
Lauren Dukes
CPSC 1110 example

Correct example of integer division.
Because y is declared as floating point and x is declared as integer,
the compiler selects the highest level of precision (floating point) to perform
the operation. So, the correct result is yielded--0.5.
*/


#include <stdio.h>

int main(void){
	int x = 1;
	float y = 2;
	float result = x / y;
	printf("division result is %f\n",result);
	return 0;
}
