daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (x > y) {
  2.         int temp = 0;
  3.         if (x % 2 == 0)
  4.         {
  5.             temp = x / 2;
  6.             sum += temp + temp / 2 - 1;
  7.         }
  8.         else if (x % 2 == 1) {
  9.             temp = x / 2 + 1;
  10.             sum += temp + temp / 2 - 1;
  11.         }
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top