Computer Science, asked by adarsh9327, 2 months ago

Write a program in JAVA to display the above pattern​

Attachments:

Answers

Answered by sakshi1158
0

Answer:

Sandglass Star Pattern

import java.util.Scanner;

public class SandglassPattern.

{

public static void main(String[] args)

{

int i, j, k, n;

Scanner sc = new Scanner(System.in);

System.out.print("Enter the number of rows you want to print: ");

Similar questions