Rewrite the following program correctly:
x = 2
y = 2.2;
float z = x * y;
System.out.printline("Value of x = " x)
system.out.println("Value of z = " + z) in java
Attachments:
![](https://hi-static.z-dn.net/files/d45/8e344bd54a30c547f59f70790af171d5.jpg)
Answers
Answered by
0
Answer:
float x = 2f;
float y = 2.2f;
float z = x * y;
System.out.println("Value of x = " x) ;
system.out.println("Value of z = " + z);
Similar questions