Write a program to assign two fractional numbers and print their differrence
Answers
Answered by
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