Addition of Two decimal numbers in JAVA. How to add two decimal numbers in java
Addition of Two decimal no in java.
Click on below link ::
For Practice Copy the code below::
package google;
import java.util.Scanner;
public class nileshdeore
{
public static void main (String args[])
{
Scanner input = new Scanner (System.in);
float num1,num2,sum;
num1=input.nextFloat();
num2=input.nextFloat();
sum=num1+num2;
System.out.println("Sum of two decimal no is ::"+sum);
}}
Comments
Post a Comment