Last active
December 4, 2024 17:59
-
-
Save AI-Cortex/01d7d61afe8ffb3492c908046d8c3587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// my profile : https://www.codewars.com/users/AI-Cortex | |
// codewars solution github repository : https://github.com/AI-Cortex/codewars_solution | |
////////////////////////////////////////////////////////////////////// | |
// name : Count by X | |
// link : https://www.codewars.com/kata/5513795bd3fafb56c200049e | |
#include <vector> | |
std::vector<int> countBy(int x,int n){ | |
std::vector<int> v; | |
for(int i=1; i<=n; i++) | |
v.push_back(i*x); | |
return v; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment