Computer Science, asked by mishraatharva49, 9 months ago

Write a program in Java to assign three numbers with decimal point and print their sum

and product.​

Answers

Answered by hashminayyer34
16

Explanation:

import Java.util.*;

class sumno

{

public static void main(Strings args[])

double a, b, c;

double sum;

a=1.5;

b=2.5;

c=3.5;

sum= a+b+c;

system. out. println("sum of the no. is ="+sum);

}

}

Similar questions