Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>       /* sin */
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cout  << "pleace type number in range 0 - 1" << endl;
  9.     cin >> n;
  10.    
  11.  
  12.    
  13.     double arr[5][5] = {
  14.         {6.12, 8.11, 13.30, 4.22, 7.11},
  15.     };
  16.    
  17.    
  18.     for (int i = 0; i < (sizeof(arr)/sizeof(*arr)); i++){
  19.        
  20.         for (int j = 1; j < (sizeof(arr[i])/sizeof(*arr[i])); j++){
  21.             double curent_sin = sin (arr[i][j]);
  22.             if (curent_sin >= n && curent_sin <= n){
  23.                
  24.             }
  25.         }
  26.  
  27.     }
  28.    
  29.    
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement