Computer Science, asked by Anonymous, 5 months ago

ᏢᏒᎨᏁᎿ

ᴊᴀᴠᴀ ᴘʀᴏɢʀᴀᴍᴍᴇ sᴛᴀʀ ᴘᴀᴛᴛᴇʀɴ


ʀɪɢʜᴛ ᴀɴɢeled sᴛᴀʀ ᴘᴀᴛᴛᴇʀɴ .


ɴᴏ sᴘᴀᴍ

Answers

Answered by kamalrajatjoshi94
5

Answer:

Program:-

//Right angled star pattern

import java.util.*;

public class Main

{

public static void main(String args[])

{

Scanner in=new Scanner(System.in);

int i,j,n;

System.out.println("Enter the limit:");

n=in.nextInt();

for(i=1;i<=n;i++)

{

for(j=1;j<=i;j++)

{

System.out.print("*"+" ");

}

System.out.println();

}

}

}

Output is attached.

Logic:-

You just want to know this pattern

1

1 2

1 2 3

...

  • Just print an asterisk sign with the above loop.

Attachments:
Answered by jessica1234657
2

Explanation:

hiiii Charlie how r u

good morning

Similar questions