Sunday, May 5, 2013

Simple addition Program Using Java

import java.lang.*;
import java.io.*;
class Add
{
    public static void main(String args[])
    {
        int x=10,y=7,z;
        z=x+y;
        System.out.println("The result is:"+z);
    }
}

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More