Computer Science, asked by mondalsubimal7, 6 hours ago

Write a program using nextDouble() method to find sum of two numbers​

Answers

Answered by ansariqamroshkamal
0

Explanation:

import java.util.*;

class Sum

{

public static void main ()

{

double a,b;

double c=0.0;

System.out.println("ENTER THE TWO NUMBERS");

a=sc.nextDouble();

b=sc.nextDouble();

c=a+b;

System.out.prinln("SUM : "+c);

}

}

Similar questions