954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

I can't get algorithms in Visual studio(Pascal Triangle)

I am practicing Visual Studio (2005) and I ran on to this problem, a Pascal Triangle. I don't kinda get how to produce an output like this:

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 15 6 1

..and this one:

1
2 4
3 6 9
4 8 12 16
5 10 15 20 25
6 12 18 24 36 42


..and so on using repetition structures such as For..Next, While..End While, Do While..Loop, and If Else..End If. I'm really trying to code it in literally paper since I don't have my own PC and only when I'm at school that I can practice it. Can you help me providing the code using those repetition structures?

Thank you to those who will reply.

kimmie87
Newbie Poster
1 post since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: