Lab 4 milestone 4: Fprintf (With %f)
You cannot submit for this problem because the homework's deadline is due.
Check lab4.pdf on canvas for the detail.
The name of your .c
file should be lab4.c
commands.txt
:
a = 1 + 1;
b= 10^(-2);
c =(0 /a+ 0 / 1+ 0/3 + 0/a + b * 2.5) * b^(-2);
d=a^( a^ 2) /(4*8);
e =-8+ (6+c)^1+3.04/ (3.04^(a*d) * d);
a= b*c + d - e + e^(b^(-1) / 50);
f = (2.5^ ( -2) -(-23.2)/(5.8)^ (b^0) - 0.16)^ (a ^ 0+b ^ 0+e ^ 0);
a = (((200*b)^2)^(1+f^(e^0/3)/2)*60/2+1)*3+10624/f^0.5;
tenlengthv=-3.2+(8-2^2) + 1^100/((2^0.5) * (4^0.25)) + (-0.25) + 1 - 0.6 / 0.4 + 16^ (1/0.25/16);
result1234=((((((a-7081)))))-(((( ((b^(-2)))))))*(((( (((1))))))-((((((0)))) )))/(((((-1)^2))) * ((((-2)^2))) ));
fprintf("Show the results!\n")
fprintf("a * b = %f, ", a * b)
fprintf("b - c + a * f = %f\n",b-c+a*(f/(f/2)) );
fprintf("ans = %f\n", tenlengthv^(b*100)+0.4*a*result1234);
Lab 4 (TEST ONLY)
- Status
- Finished
- Problems
- 4
- Open Since
- 2021-10-30 00:00
- DDL
- 2021-11-11 23:59
- Extension
- 24.0 hour(s)