You are on page 1of 3

COLEGIO DE STA.

TERESA DE AVILA FOUNDATION INC

CALENDAR PROGRAM

In Partial Fulfillment of the Requirements for the subject


ITEC003
BASIC PROGRAMMING

GROUP MEMBER:
Members name

SUBMITTED TO:
Christian F. Maasin

DATE:
OCTOBER 20, 2014

Page 1

COLEGIO DE STA.TERESA DE AVILA FOUNDATION INC

I PROBLEM

Create a program that will display a calendar format based on the inputted month
and year.

II SCREEN SHOT

Page 2

COLEGIO DE STA.TERESA DE AVILA FOUNDATION INC

III SOURCE CODE AND EXPLANATION


import java.io.*;
public class buff{
public static void main(String[]args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int intNum1 = 0, intNum2 = 0, intsum = 0;

System.out.print("Enter first number : ");


intNum1 = Integer.parseInt(br.readLine());
System.out.print("Enter second number : ");
intNum2 = Integer.parseInt(br.readLine());

intsum = intNum1 + intNum2;

System.out.print("The sum of two numbers is : " + intsum);


|-- this line is used to print the sum of two numbers
}
}

Page 3

You might also like