Skip to main content

Command Palette

Search for a command to run...

Day 06 of 100 days of code: Completed all patterns questions

Published
1 min read
Day 06 of 100 days of code: Completed all patterns questions
C

Hello World! I am Carol Dsilva, A Second Year Information Science Engineering Student at Sir M Visvesvaraya Institute of Technology with a profound interest in Technology and Design.

Completed the 22 pattern questions from the Strivers list. It helped me understand loops better as well as explore strings.

I had the most fun solving this question

void alphaTriangle(int n) {

    for(int i = 0; i<n; i++){
        int start = 65+(n-1);
        for(int j = 0; j<=i; j++){
            cout << char(start)<<" ";
            start--;
        }
        cout<<endl;

    }
}

Here is my Coding ninjas profile: https://www.naukri.com/code360/profile/caroldsillva

More from this blog

C

Carol Dsilva

14 posts

Hello World! I am Carol Dsilva, A Second Year Information Science Engineering Student at Sir M Visvesvaraya Institute of Technology with a profound interest in Technology and Design.