Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int N,result;
- scanf("%lld",&N);
- if(N%2==0)
- result=N/2;
- else
- result=(N+1)/2;
- printf("%lld\n",result);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement