Advertisement
Rifftera

for_Ikbol

Nov 30th, 2021
936
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. void f32_23(const float[3][7]& arr, float T){
  2.     for (int co = 0; co < 7; ++co) {
  3.         float min, max = min = arr[0][co];
  4.         if (arr[1][co] > max) max = arr[1][co];
  5.         if (arr[2][co] > max) max = arr[1][co];
  6.         if (arr[1][co] < min) min = arr[1][co];
  7.         if (arr[2][co] < min) min = arr[1][co];
  8.         if (max - min > T) return;
  9.         else cout << max - min;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement