Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include "math.h"
  3.  
  4. int main()
  5. {
  6.     float h = 0.02f;
  7.     float a = 0.1f;
  8.     float b = 0.9f;
  9.  
  10.     float currentValue = 0;
  11.     float y = 0;
  12.     float exp = 2.718f;
  13.  
  14.     while (currentValue < b)
  15.     {
  16.         currentValue += h;
  17.         y = expf(currentValue);
  18.         std::cout << y << std::endl;
  19.     }
  20.  
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement