Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  4
Language: JAVA
Code:
import java.io.*;
import java.util.Scanner;
import java.util.*;
 
public class Star {
 
    static int n;
     
 
    public static void main(String[] args) {
         
         
        Scanner scan = new Scanner(System.in);
        System.out.println("Enter one numbers: ");
        n = scan.nextInt();
         
        for(int i=n;i>0;i--){
            for(int j=i-1;j>0;j--)
                System.out.print("*\t");
        System.out.println();
        }
    }
}
Comments: