Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 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. for (;c < 2.1; c+=0.3)
  11. {
  12. d += pow(4, a * c) - pow(sin(a + c), 2);
  13. }
  14. cout << "d=" << d;
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement