write a java statement to convert float to a integer value and store in b
Answers
Answered by
2
Answer:
public class classname{
public static void main(String args[]){
int b =(int) 3.44 f;
System.out.printf("float : %f, int : %d %n", 3.44f, b);
}
}
Similar questions