//Sum of 2 Numbers
import java.util.Scanner;
public class Sum
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int a,b,s;
System.out.println("Enter first variable");
a=sc.nextInt();
System.out.println("Enter second variable");
b=sc.nextInt();
s=a+b;
System.out.println("Sum of the two values="+s);
}
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.