Type the programs in NOTEPAD or DOS prompt itself, for Consol Application.
Type in NETBEANS or ECLIPSE for Window Application.
Here after , I am just typing the programs only..to know more about it , refer
Type in NETBEANS or ECLIPSE for Window Application.
Here after , I am just typing the programs only..to know more about it , refer
Introduction to JAVA
before doing any JAVA Programs.
************************************************************************************
Refer Sum(user defined values) also.
************************************************************************************
Refer Sum(user defined values) also.
************************************************************************************
class Add
{
public static void main(String args[])
{
int a,b,c;
a=20;
b=40;
c=a+b;
System.out.println("Addition="+c);
}
}
=========================================================================
Output : Addition=60.
No comments:
Post a Comment