MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
The floor of 45.7 is 45.0
    
     
 */

public class MainClass {
    public static void main(String args[]) {
        System.out.println("The floor of 45.7 is " + Math.floor(45.7));
    }
}