Computer Science

posted by .

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 create the following output to the screen.

... (this pattern continues forever)

5 6 7 8 9 10
5 7 9 11 13 15
5 8 11 14 17 20
... (the pattern continues forever)

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)

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. math

    input 1 nickel/output 3 pennies, input 1 dime/output 3 nickels, input 1 quarter/(not sure what the output would be--I think 3 dimes, input 1 half-dollar/(not sure what the output would be--thinking 1 quarter). If I am write I am not …
  2. computer programming

    Construct a structure chart, as well as a flowchart and pseudocode, for the following problem. Assume that each input record contains a taxpayer’s name, the value of a personal property belonging to the taxpayer, and a code …
  3. computer science

    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 …
  4. Computer Science - MATLAB

    In a problem I had to create a animation of the function sin(x-a) were a ranged from 0 to 8pi Code: x=[-2*pi:.00001*pi:2*pi]; a=0; y=sin(x-a); g=plot(x,y); grid on; title('sin(x-0)') set(g,'EraseMode','xor') while a<=8*pi a=a+.1*pi; …
  5. Ms Visio

    • 2. Construct a data dictionary and draw a hierarchy chart and flowchart or pseudocode for a program to calculate commissions. Output. Output is the commission report shown in the spacing chart that follows. At most, 50 detail lines …
  6. computer sciece

    #include <stdio.h> #include <stdlib.h> int main() { int num[100]={0}; int i,n=0; for(i=0; num[i] != EOF ; i++,n++) { scanf("%d",&num[i]); } printf("%d\n", i); while(i=0;i<n;i++) printf("%d ",num[i]); printf("\n"); system("pause"); …
  7. 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 …
  8. Computer Literary

    Which of the following is Not an example of debugging A)Looking for errors in programming code B)Fixing misspelled commands in programming code C)Solving faulty logic in programming code D)Upgrading to improve the programming code
  9. computer,science, java

    Inorder to motivate the employees, the company has decided to announce the different types of bonus depends up on the employee’s Grade. If the employee belong to Grade A bonus=20% basic Grade B bonus=15% basic Grade C bonus=10% basic …
  10. Ed Tech

    What does the code of conduct include? A. A secret code for internet users B. The conduct that should be used with a code C. A set of rules for behavior when using the internet D. A rule that tells you the code I think C Thanks!

More Similar Questions