Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
C
Ankit_132
Feb 28th, 2024
1,068
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <bits/stdc++.h>
using
namespace
std
;
int
main
(
)
{
int
t
;
cin
>>
t
;
while
(
t
--
)
{
int
n
;
cin
>>
n
;
long
long
int
x
=
(
n
*
1ll
*
(
n
+
1
)
)
/
2
;
cout
<<
x
-
1
+
n
<<
"
\n
"
;
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅⭐ Make huge profits on trading ⭐⭐ U
JavaScript | 10 sec ago | 0.24 KB
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ T
JavaScript | 21 sec ago | 0.24 KB
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ I
JavaScript | 32 sec ago | 0.24 KB
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ Z
JavaScript | 43 sec ago | 0.24 KB
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 5
JavaScript | 1 min ago | 0.24 KB
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ R
JavaScript | 1 min ago | 0.24 KB
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ T
JavaScript | 1 min ago | 0.24 KB
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ P
JavaScript | 1 min ago | 0.24 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!