diff --git a/inputs/task_1.cpp b/inputs/task_1.cpp new file mode 100644 index 0000000000000000000000000000000000000000..89fc3230b4322718d9f15cebb298d3f485c73f70 --- /dev/null +++ b/inputs/task_1.cpp @@ -0,0 +1,15 @@ +#include <iostream> + +/* + For this task, read in a number n on cin and print out the first n square numbers each in their own line +*/ +int main(int argc, char **argv) { + int n; + std::cout<< "Enter a number:"<<std::endl; + std::cin>>n; + std::cout<<std::endl; + for(int i=0; i<=n; i++){ + std::cout<<i*i<<"\n"; + } + return 0; +}