sivan_iut

Untitled

Feb 29th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     long long n;
  5.     scanf("%lld",&n);
  6.     if(n%2==0)
  7.         printf("%lld",n/2);
  8.     if(n%2==1)
  9.         printf("%lld",n/2-n);
  10.  
  11.  
  12.  
  13.     return 0;
  14. }
Add Comment
Please, Sign In to add comment