Computer Science, asked by kamthanneeraj, 10 months ago

4
34
234
1234
It's a pattern question ...
Please write in java statements using "
"for"

Answers

Answered by Anonymous
1

01234

It is your answer

Answered by aniketmishra98311
0

Answer:

Explanation: You need to nest two for loops in one program to get the desired input -

Here are the Java Statements for the following questions -

public class Problem{

   public static void main(String args[]){

    int i,j;

    for(i=4;i>=1;i--){

       for(j=i;j<=4;j++){

        System.out.print(j);

       }

       System.out.println();

    }

   }

}

Similar questions