- #1
Spectre32
- 136
- 0
Ok perhaps I'm not grasping how C does math. I have these few questions:
E = delta*beta/gamma+c/b
F = (d/b)%d;
The print formats for those are %2.3lf and %3d respectively. Here are the values:
delta = 4 .000
beta = 4.0
gamma = 3.0
c = 2
b = 3
d = 7
c,b,d are type int and the rest are type double. On my answer sheet they says the answers for those two are E = 5.333 and F = 2 i have the spaces down, but I'm having a problem getting to those answers.
Any help would be great.
E = delta*beta/gamma+c/b
F = (d/b)%d;
The print formats for those are %2.3lf and %3d respectively. Here are the values:
delta = 4 .000
beta = 4.0
gamma = 3.0
c = 2
b = 3
d = 7
c,b,d are type int and the rest are type double. On my answer sheet they says the answers for those two are E = 5.333 and F = 2 i have the spaces down, but I'm having a problem getting to those answers.
Any help would be great.