Menu Bar

Horizontal Scrollable Menu

ads

Search This Blog

Java Addition

Addition of two number

Source Code
import java.io.*;
import java.util.*;
class Add
{
public static void main(String[] args)
{
Scanner ob=new Scanner(System.in);
System.out.println("enter value of a and b");
int a=5
int b=8
int c=a+b;
System.out.println("sum of c:"+c);
}
}

No comments:

ads3