Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

double number java

class doubleNumber{
	public static voidmain (String []args){
    int x = 40; // can be used to store whole numbers except decimals//
    double y= 40.4; // can be used to store all numbers including decimals//
    System.out.println(y/2);// will print out the result 20.2//
    System.out.println(x/2); // will print out 2//
    }
}
    
 
PREVIOUS NEXT
Tagged: #double #number #java
ADD COMMENT
Topic
Name
9+2 =