Advertisement
miladinovic87

Untitled

Nov 28th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public void uvecaj(int parniZa, int neparniZa) {
  2. for (Node tmp = head; tmp != null; tmp = tmp.next) {
  3. if (tmp.info % 2 == 0) {// parni
  4. tmp.info = tmp.info + parniZa;
  5. } else {// neparni
  6. tmp.info = tmp.info + neparniZa;
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement