Sum of Values in Java


Here is the simple program for printing sum of values in Java.

Source Code

//Getting Values Through Keyboard
import java.io.*;
import java.util.Scanner;
class getvalue
{
	public static void main(String args[])
	{
		int a;
		double b;
		Scanner in =new Scanner(System.in);
		System.out.println("Enter The Integer Number :");
		a=in.nextInt();
		System.out.println("Enter The Float Number :");
		b=in.nextDouble();
	}
}
To download raw file Click Here

Output

Sum of x+y = 35


Learn All in Tamil © Designed & Developed By Tutor Joes