From a84468770b103f7600d16a78f73503466ee1a1a7 Mon Sep 17 00:00:00 2001 From: Josseye <155636321+Josseye@users.noreply.github.com> Date: Thu, 25 Jan 2024 15:39:06 +0100 Subject: [PATCH] Update generateSequence.hpp --- homework/generate-sequence/generateSequence.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homework/generate-sequence/generateSequence.hpp b/homework/generate-sequence/generateSequence.hpp index deef1aef..f6ea09a6 100644 --- a/homework/generate-sequence/generateSequence.hpp +++ b/homework/generate-sequence/generateSequence.hpp @@ -5,7 +5,7 @@ std::vector generateSequence(int count, int step) { std::vector returnvector = {}; int i, number; for (i = 0; i < count; ++i) { - number=(step+(i*step)); + number = (step + (i * step)); returnvector.push_back(number); } return returnvector;