Pages

Wednesday, March 26, 2025

Print square patterns using for loop in C++

 #include <iostream>

using namespace std;
int main(){
   
    for(int i = 1; i <= 5; i++){

        cout << "****" << endl;

        /* MyLearnings:- cout << i << "****" << endl; -> this will print value of i +patterns
so keep in mind. */
    }

    return 0;
}


No comments:

Post a Comment

how to become red on codeforces by Errichto Algorithms | explained simply in a blog

 Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...