From 780b879add86e6cf8c444102236e0c9ac2e0cb14 Mon Sep 17 00:00:00 2001 From: 7SepRash Date: Fri, 18 Oct 2024 13:04:58 +0530 Subject: [PATCH] added-question added-name removed-extra-line --- .../PrintPerfectSquares/PerfectSquare.cpp" | 11 +++++++++++ .../PrintPerfectSquares/question.md" | 7 +++++++ "Beginner Level \360\237\223\201/data.json" | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 "Beginner Level \360\237\223\201/PrintPerfectSquares/PerfectSquare.cpp" create mode 100644 "Beginner Level \360\237\223\201/PrintPerfectSquares/question.md" diff --git "a/Beginner Level \360\237\223\201/PrintPerfectSquares/PerfectSquare.cpp" "b/Beginner Level \360\237\223\201/PrintPerfectSquares/PerfectSquare.cpp" new file mode 100644 index 00000000..a8821f6e --- /dev/null +++ "b/Beginner Level \360\237\223\201/PrintPerfectSquares/PerfectSquare.cpp" @@ -0,0 +1,11 @@ +#include "bits/stdc++.h" +using namespace std; + +int main(){ + long long n; + cin>>n; + long long x = floor(sqrt(n)); + for(long long i = 1;i<=x;i++){ + cout<<(i*i)<