Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <cstdlib>
  4. #include <iostream>
  5. using namespace std;
  6. int main()
  7. {
  8. float a = 0.2,c=0.7;
  9. float d = 0;
  10. do
  11. {
  12. d += pow(4, a * c) - pow(sin(a + c), 2);
  13. c += 0.3;
  14. } while (c<2.1);
  15. cout << "d=" << d;
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement