Professional Documents
Culture Documents
Life 2-Review3-Mid1
Life 2-Review3-Mid1
Compiler Interpreter
Syntax Semantics
"+(length*width));
5. Write a program in Java that display a Triangle with stars as shown in the output Screen-
short. Two (3) Marks
Guideline for developing the application.
Program Output
Public class Test{
Public static void main(String[] args){
System.out.println("*");
System.out.println("**");
System.out.println("***");
System.out.println("****");
System.out.println("*****");
System.out.println("******");
6. Develop an application program in in Java that can perform ANY of the following two
operations:
a. Summation of 2 numbers (3) Marks
b. Multiplication of 2 numbers