Program to find sum , difference and product of 12.35 and 7.3 using variables with single system.out.println statement, with horizontal tab space in the result
Answers
Answered by
26
Hii I am khushi. This is the program in blue J. It works, relax and copy
Attachments:
Answered by
9
Explanation:
class Program
{
static void main ( )
{
float a = 12.35f, b = 3.5f, s, d, p;
s = a * b;
d = a - b;
p = a * b;
System.out.println("The sum is" +s + " \t, The product" +p + "\t and difference is " +d)
}
}
Similar questions