Find the function in Java for 1=>5; 2=>4; 3=>3; 4=>2; 5=>1; 6=>7; 7=>6; [closed]

Use this formula:

result = (12 - i) % 7 + 1

Leave a Comment