Computer Science, asked by Enegizer, 1 month ago

how to print 1 2 3 4 5
2 2 3 4 5
3 3 3 4 5
4 4 4 4 5
5 5 5 5 5
In java​

Answers

Answered by Anonymous
1

Answer:

Read the following and answer any four questions:

The following is the diagram of an electric motor:

a) Which part of the electric motor in the above figure) can be used as an armature after

some modifications?

(1) POXY

(n) YXOP

(I) ABCD

(iv) ABPQ

Page (4)

b) What are these modifications in the part mentioned above?

1) large number of turns

il) s soft iron core

(1) both large number of turns and a soft iron core

(iv) none of these

Which part in the above diagram is replaced by an electromagnet in order to make a

Commercial motor?

(1) X and Y

(ii) Pando

(im) R

(iv) None of these

d Which part in the above diagram is a device that reverses the direction of flow of

current through a circuit?

1) X and Y

(11) P and Q

(117) R

(iv) None of these

Which part in the above diagramis used as an axle in the electric motor?

6) X and Y

(11) P and q

(in) R

(iv) None of these

Answered by Revathi5052277
2

Answer:

public class Main {

 public static void main(String[] args) {

   int rows = 5, k = 0;

   for (int i = 1; i <= rows; ++i, k = 0) {

     for (int space = 1; space <= rows - i; ++space) {

       System.out.print("  ");

     }

     while (k != 2 * i - 1) {

       System.out.print("* ");

       ++k;

     }

     System.out.println();

   }

 }

}

Explanation:

Hope this helps u

Similar questions