computer science
posted by Susie .
Hi I have 3 output problems that I need assistance, thank you!
Produce Output
For each problem, you are to produce the code, in JAva, to create the following output to the screen.
1.
+
+++0
++++++00
++++++++++000
... (this pattern continues forever)
2.
5 6 7 8 9 10
5 7 9 11 13 15
5 8 11 14 17 20
... (the pattern continues forever)
3.
0 2 4 6 8 10
1 3 5 7 9 11
3 5 7 9 11 13
6 8 10 12 14 16
... (pattern continues forever)

1. It's the Pascal's triangle, namely
1,3,6,10,15...
or
1
+2=3
+3=6
+4=10
+5=15....
2.
The pattern is
5,6,7, ( add 1 to get the next number)
5,7,9...(add 2 to get the next number)
5,8,11,....(add 3 to get the next number)
3. It's a combination of 1 and 2:
Note the first column is 0,1,3,6,10, the numbers we did previously. Then add 2 to make the second column, 2,3,5,8,12...
and so on.
Respond to this Question
Similar Questions

calculus
i have a problem figureing out this question do you have any help? 
Part 1
input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) output "your grade is" X output "you did OK" else if (70 <= X and X < 85) output "your grade is" X output "you did well" else if (85 <= … 
Part 1
Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) output "your grade is" X output "you did OK" else … 
programming
Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0<=X and X<49) Output "you fail" Else if (50<=X and X <70) Output "your grade is" X Output " you did OK" Else if … 
Microeconomics  Oligopoly
Two firms decide to form a cartel and collude in a way that maximizes industry profits. Each firm has zero production costs and each firm is given a positive output quota by the cartel. Which of the following statement(s) are NOT true. … 
Computer Science
Hi can you guys help me with these output code, I think you need to include for loops, but I'm not sure how to use it. Example code would be helpful, thanks. Produce Output For each problem, you are to produce the code, in JAva, to … 
Math
Hey, I need your help! I have an input output table that I need the function rule for. The table is like this: Input: 0 Output: 25 Input: 100 Output: 35 Input: 200 Output: 45 Input: 300 Output: 55 Input: 400 Output: 65 PLEASE I NEED … 
Java programming
can anybody help me.. Multidimensional Array Use a twodimensional array (for example of 3 by 3) to simulate the addition operation of two matrices. Sample output: the first matrix: 1 2 3 1 0 1 1 2 1 the second matrix: 1 1 1 2 2 2 … 
Computer Science
I need help with this problem. I don't know how to set it up correctly. Input a list of positive numbers (terminated by 0)into an array, and output the result. Use a subprogram to output the numbers, a function to find the mean, an … 
Computer Science
What is the rule for this function? input 1 output 2 input 2 output 5 Input 3 output 12 Input 4 output 34 Input 5 output 135 Input 6 output 741