cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
DP
Page 2
DP
Pages:
1
2
Jun 25, 2019 at 6:18am UTC
SparkXV
(29)
@counter strike
it gives answer of 70282652 but answer is 26030209
This is wrong because u have to add f(10)+f(11)+f(12)+.....+f(99).
In your code you are doing only f(10)+f(99) and also u should take care of overflow for every iteration.
Topic archived. No new replies allowed.
Pages:
1
2