Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Proced_3_Pratyb_3.02
rengetsu
Mar 13th, 2018
59
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
int
main
(
)
{
int
n,a
[
11
]
,sum
=
0
;
cin
>>
n
;
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
cin
>>
a
[
i
]
;
if
(
i
==
0
||
i
==
n
-
1
)
{
sum
+
=
a
[
i
]
;
}
}
cout
<<
sum
<<
endl
;
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑G2A.com Free Gift Card FIX June 2024🤑
JavaScript | 6 min ago | 0.30 KB
100 mm A-190E-01
Lua | 9 min ago | 0.83 KB
130 mm A-192M
Lua | 9 min ago | 0.82 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 12 min ago | 0.31 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 18 min ago | 0.29 KB
Capital Railgun
Lua | 19 min ago | 0.92 KB
100 mm A-190E-01
Lua | 19 min ago | 0.80 KB
130 mm A-192M
Lua | 19 min ago | 0.78 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!