Computer Science, asked by ashwinjohn3902, 10 months ago

Create a sequence of even numbers between 1 to 10 repeating twice

Answers

Answered by anuraghmoni35
0

Answer:

Explanation:

To solve the question in java we have to do the following:-

for ( int j = 1 ; j < = 2 ; j + +)

for( int i = 0 ; i < = 10 ; i = i + 2 )

{

 R = i ;

  System . out . println ( R + "  " ) ;

}

Here the initial value of the control variable j set to 1 which shall  execute twice and the inner loop contains the printing sequence of even numbers.

Similar questions