ptroy wrote:And so you can. I don't have a compiler handy, but I imagine that if you do this:
Figured it was something simple, the teacher said the variable should be of double type, but I guess I'll check and see if I can use int type.
my guess is you'll get a double variable that holds 1.0. But I'm not 100% sure here. Best to play around with this, test different variations out.
double result = 7/5;