Skip to content

Commit

Permalink
Update generateSequence.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal-Leszczynski authored Jun 13, 2024
1 parent 66021c9 commit a111109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homework/generate-sequence/generateSequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ std::vector<int> generateSequence(int count, int step) {
int meter = 0;
if (count >0) {
for (int i = 0; i < count; i++) {
meter = meter + step;
answer.push_back(meter);
meter = meter + step;
answer.push_back(meter);
}
}
return answer;
Expand Down

0 comments on commit a111109

Please sign in to comment.