Advertisement
AnindyaBiswas

PascalMain

May 5th, 2022
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. package pkg;
  2.  
  3. public class PascalMain{
  4.     public static void main(String Args[])
  5.     {
  6.         System.out.println("Default");
  7.         Pascal p1 = new Pascal();
  8.         p1.printPascal();
  9.         System.out.println("Parameterized");
  10.         Pascal p2 = new Pascal(7);
  11.         p2.printPascal();
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement