Computer Science, asked by abinash4011, 8 months ago

Write a program to assign two fractional numbers and print their differrence

Answers

Answered by mail2sibani10
2

Answer:

public class float

{

public static void main(String[]args)

{

float a=24.0;

float b= 4.0;

float diff;

diff= a-b;

System.out.println("The difference of a and b is" +diif);

}

}

Answer after execution:

20.0

hope it helps u and please rate me 5 stars Buddy!

Similar questions