I actually tried that code (in c++) earlier:
The output doesn't help at all, when it displays the value for 'a' (float=4.0) it displays '4' (no decimal). But what's output on the screen doesn't necessarily indicate what's stored in memory...right? Thanks for your reply.
float a = 4.0, b = 8.0, c= 1.5;
int x = 5, y = 7.5, z = 19.0;
float q, r;
int s, t;
q = y *a+a *c;
r = z%x+b/a;
s = x+z/y*c;
t = b/a * b*x + c;
cout<< a << b << c << x << y << z << q << r << s << t;
I apologize, I'm having a hard time understanding your reply (I'm fairly new to programming ) but I think that's the kind of answer I'm looking for. Could you perhaps elaborate on what you mean, maybe even an example? Thanks again.