hello everyone, im new to the whole programing thing, and I seem to be having problems with multiplying/dividing multiple integers.
The line that is giving me all the problem is
I have defined all three variables, and have it set up so the user enters all 3 ints, and then the program spits out the number. most of the time, int2 / int3 gets me a irrational number, (such as 1.66666666), then multiplies it by int1, usualy resulting in a integer.Code:printf( "Message: %d", int1 * ( int2 / int3 );
the only problem is that im trying to make the program work even when the output number is 199.99999, so how would i go about doing this? mabye rounding the out put to the nearest integer?