friends, please answer this question please... please ......
Attachments:
Answers
Answered by
2
Answer:
Explanation:
series 1.
import java.util.Scanner;
public class MainClass
{
public static void main(String[] args)
{
System.out.println("How many rows you want in this pattern?");
Scanner sc = new Scanner(System.in);
int noOfRows = sc.nextInt();
int value = 1;
System.out.println("Here is your pattern :");
for (int i = 1; i <= noOfRows; i++)
{
for (int j = 1; j <= i; j++)
{
System.out.print(value+"\t");
value++;
}
System.out.println();
}
}
}
Answered by
1
Answer:
it's me with my second id
Similar questions
Social Sciences,
5 months ago
World Languages,
10 months ago
Biology,
10 months ago
History,
1 year ago
Math,
1 year ago