Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85751064
arithmetic_series.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Oct 1, 21:15
Size
191 B
Mime Type
text/x-c
Expires
Thu, Oct 3, 21:15 (2 d)
Engine
blob
Format
Raw Data
Handle
21261643
Attached To
R9360 PCSC_git
arithmetic_series.cpp
View Options
#include <iostream>
int
arithmetic
(
int
i
)
{
if
(
i
==
1
)
return
1
;
return
i
+
arithmetic
(
i
-
1
);
}
int
main
()
{
int
a
=
5
;
std
::
cout
<<
arithmetic
(
a
);
std
::
cout
<<
std
::
endl
;
}
Event Timeline
Log In to Comment