Pages

Thursday, March 20, 2025

code to convert float to int in Java

 import java.util.*;


public class JavaBasics {

    // code to calculate area of a circle: area = 3.14 x radius x radius.
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        float number = sc.nextInt();
        System.out.println(number);

}
}

No comments:

Post a Comment

how to become red on codeforces by Errichto Algorithms | explained simply in a blog

 Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...