Computer Science, asked by sriramanii27, 4 months ago

write a java statement to convert float to a integer value and store in b​

Answers

Answered by vinigoms22
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