How To Use Float Variable in Java Programming Language
The Following script is the simplest way to declaring and using float variable in Java:
class UseFloat{
public static void main(String args[]){
float x; //declaring x as an floating point variable
x = 100; //set x with floating point number
System.out.println("x = "+ x);
}
}
you can see the output in this video:
ShadowOfBdg© - All rights reserved.
No comments:
Post a Comment