daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var
  2.     n: integer;
  3. begin
  4.     read(n);
  5.     writeln(n * (n + 1) div 2);
  6. end.
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