Computer Science, asked by shalini683, 1 year ago

Write a program in java to display the given pattern using scanner class method
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Please answer in paper and sent

Because I am beginner in program

I used to write program in paper

Please answer it correctly

I will mark you as brainlist

Please answer it very fast ​

Answers

Answered by arunkumar33
0

hope it helps u

mark it BRAINLIEST

Attachments:
Answered by Anonymous
2

import java.io.*;

class Pattern

{

public static void main()throws IOException

{

for(int I=1;i<=5;i ++);

{

for(int j=i;j<=5;j++);

}

System.out.println(j);

}

}

Hope it helps...

Sorry I could not write in paper cause I don't know how to send a photo am new to this app

But the program is correct

Please mark brainliest

Similar questions