Advertisement
rootuss

Untitled

Jun 27th, 2021 (edited)
1,734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. // Place local declarations here.
  2. int[0,9] valid_pin[PIN_LENGTH] = {1,2,3,4};
  3.  
  4. bool checkIfPINDigitIsValid (){
  5.     return is_pin_valid && pin_iterator < PIN_LENGTH && pin[pin_iterator] == valid_pin[pin_iterator];
  6. }
  7.  
  8. bool checkIfPINDigitIsNotValid (){
  9.     return is_pin_valid && pin_iterator < PIN_LENGTH && pin[pin_iterator] != valid_pin[pin_iterator];
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement