Thursday 13 June 2013

simple program in java - addition of two number

import java.io.*;
class simple_addition1
{
    public static void main(String args[])
    {
        int a=10,b=20,c;
        c=a+b;
        System.out.println("addition of given numbers is = "+c);
    }
}

No comments: