.
Home About-us Privacy Policy Contact-us Services

Friday, October 16, 2015

Java - Add the Two Number Program Example - Allprogramexample

ad+1

Add the Two Number Program
class add1
{
public static void main(String args[])
{
System.out.println("Addtion of two numbers");
int a=10;
int b=15;
int c=a+b;
System.out.println("result is "+c);
}


Output - 
25

 

0 comments:

Post a Comment

Home About-us Privacy Policy Contact-us Services
Copyright © 2014 All Programs Examples | All Rights Reserved. Blogger Templates Download Blogger Templates