Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
Josif_tepe
Nov 15th, 2023
852
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
int
main
(
)
{
int
n
;
cin
>>
n
;
int
sum
=
n
*
(
n
+
1
)
/
2
;
cout
<<
sum
<<
endl
;
return
0
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 30.99 KB
Untitled
1 hour ago | 2.29 KB
Untitled
3 hours ago | 28.31 KB
Untitled
5 hours ago | 25.52 KB
Untitled
7 hours ago | 22.33 KB
LIGHT MODE YOUTUBE MINT STYLISH THEME
CSS | 7 hours ago | 3.99 KB
Untitled
9 hours ago | 21.95 KB
Untitled
9 hours ago | 21.45 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!