Question

Write a Java Program to Print Star Pascal’s Triangle

11 Mar 2023
Answer :
Word Count : 197

import java.util.Scanner;

public class PascalTriangle {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Enter the number of rows for Pascal's Triangle: ");
        int numRows = scanner.nextInt();

  _______ _______ ________ _____ ____ __________ ____.
_________ ________ ___ ___ ________ __________ _____ ____ __________ ____ ___.
_____ ____ ____ __________ ___ ____ ________ _____ ___ _______ ____ _________.
_______ _____ ____ ___ _______ ___ ________ ________ _______ _______.
_____ _____ _______ ________ ____ ____ _______ _______ __________ ________ _________ ________.
______ ____ ________ _______ ___ _______ ____ ______ ______ __________ __________.
____ _____ ____ _______ ___.
____ _______ _________ _____ _________.
_______ _____ ________ ____ _________.
_____ _____ _____ _______ ___ _________ ___ _______ __________ ____.
____ ________ _______ ______ _______.
____ _________ ______ _________ _______ _____ ________.
_____ __________ __________ _______ _______ _____ _______ ________ _______.
_______ ___ ____ ____ _______ ______ ______ __________.
______ _____ _____ ______ _________ ____ ________ ______ ______ ____ _______ ___.
_________ _________ _________ ___ _____.
_______ ________ ________ __________ ________.
______ ____ _________ _______ _____ ______ ______.
___ _________.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a Java Program to Print Star Pascal’s Triangle
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→