Guest User

Untitled

a guest
Jun 25th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7.  
  8.     float x = 0.2, ans = pow(sin(x), 2.0);
  9.     int n = 12;
  10.     while(n)
  11.         ans = ans + pow(sin(sin(n--) + pow(sin(x), 2.0)), 2.0);
  12.     printf("%.3f", ans);
  13.  
  14.     return 0;
  15. }
Add Comment
Please, Sign In to add comment