daily pastebin goal
24%
SHARE
TWEET

Bol

T_F Feb 22nd, 2019 234 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Бол 1.1.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "math.h"
  6.  
  7. int _tmain(int argc, _TCHAR* argv[])
  8. {
  9.     int V=1;
  10.     const int N=40;
  11.     double A[N];
  12.     int i=1;
  13.     while (i<=N)   
  14.     {
  15.     if (i%2==1)
  16.     {A[i]=(i+1)*cos(V+i);
  17.     }
  18.         else{  
  19.         A[i]=(1/(i+1))*sin(V+i);
  20.         }
  21.     i++;
  22.     }
  23.  
  24.    
  25.     return 0;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top