Write a program DisplayPattern2.java, which accepts a number as argument and print the following output:
Ex. Input : 5
Output:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Write a program DisplayPattern2.java, which accepts a number as argument and print the following output:
Ex. Input : 5
Output:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Output: 2 + 3 = 5
Write a program TestDemo.java which accepts the number as argument and print ” You Have Entered Zero ” if the Value is equal to 0. It should print “You have entered Positive value ” if the value is greater than 0. It should print “You have entered negative value ” if the Value is less than Zero.