Guest User

Untitled

a guest
Jul 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public int max1020(int a, int b) {
  2. if(b > a){
  3. int temp = a;
  4. a = b;
  5. b = temp;
  6. }
  7. if(a >= 10 && a <= 20){
  8. return a;
  9. }
  10. if(b>= 10 && b <=20){
  11. return b;
  12. }
  13. return 0;
  14. }
Add Comment
Please, Sign In to add comment