write a program to input a fractional number in float and another fractional number of double type. Multiply the float type number by 12.7.5 print the number and their multiplied values in Java bluej
Answers
Answered by
2
Answer:
class..
{
public static void main();
{
float a;
double b;
Scanner in=new Scanner(system.in)
System.out.println("enter value");
a=n.nextInt();
System.out.println("enter value");
b=n.nextInt();
System.out.println("the answer is"+(a*12.75));
}
}
Similar questions