fork download
  1. #include <iostream>
  2. #include <cmath>
  3. //using namespace std;
  4. int main() {
  5. //setlocale(LC_CTYPE, "Russian");
  6. float a, t, j, y, z, w;
  7. a = -1; y = 0.4; t = 5e-5; j = 1;
  8. while (j <= 2.000001) {
  9. z = sqrt(a + y) + 4.0*exp((-2.0) * j);
  10. w = log(0.4 * y) / (7.0 * a - z);
  11. printf("j = %5.2f\t", j);
  12. printf("d = %5.2f\t", z);
  13. printf("c = %5.2f\n", w);
  14. j = j + 0.2;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
j =  1.00	d =  -nan	c =  -nan
j =  1.20	d =  -nan	c =  -nan
j =  1.40	d =  -nan	c =  -nan
j =  1.60	d =  -nan	c =  -nan
j =  1.80	d =  -nan	c =  -nan
j =  2.00	d =  -nan	c =  -nan