Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute Java Online

/*
*I am cool
*@author Justin Dwyer
*/

public class ArithmeticDemo{

    public static void main(String [] args) {
     int x = 11;
     int y = 5;
     int v1 = x + y;
     int v2 = x - y;
     int v3 = x / y;
     int v4 = x % y;
     //sometimes i dream about cheese - valve 2004
     /*
    *this
    *is
    *a
    *multiline
    *comment
    */
     System.out.println(v1);
     System.out.println(v2);
     System.out.println(v3);
     System.out.println(v4);
    }

}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.