Member Avatar for Priti_2

1 1 1 1
2 2 2
3 3
4
There are 3 variables, 2 for loops in the C# program. It is a nested for loop. Both variables in the for loops are less than or equal to n(condition), the third variable. Kindly explain this.

Recommended Answers

All 2 Replies

At DaniWeb we are all volunteers, here to help people who want to work with us to improve their skills. The more effort you put into that, the more we will want to help. I'm sure you have already thought about how to start that program so please share what you have done so far with us.

ps: all this is explained in more detail in our Posting Rules

Hint: You got four lines to print. How should your first for loop look like?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.