Guest User

Untitled

a guest
Oct 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include<iostream>
  2. #include<cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8. float n;
  9. const int sizeZ = 20;
  10. int Z[sizeZ]{ };
  11. float func;
  12. cout << "Enter your values:" << endl;
  13. cin >> n;
  14. for (double x = 0; x < 2; x += 0.1) {
  15. float func = n*(cos(n*x));
  16. cout << "result:" << func << endl;
  17. }
  18. if (sizeZ > 0) {
  19. cout << "unsigned values" << sizeZ;
  20. }
  21. system("pause");
  22. }
Add Comment
Please, Sign In to add comment