Guest User

Untitled

a guest
May 21st, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. int above_threshold(EnergyReading readings[], int size) {
  2. int count = 0;
  3. for (int i=0;i<size; i++) {
  4. if (readings[i].kwh > THRESH) {
  5. count++;
  6. }
  7. }
  8. return count;
  9. }
Add Comment
Please, Sign In to add comment