Sunday, July 27, 2014

Java Basics 102 - Double Variables


---
Java Basics 102 – Double Variables

STEPS

1) Browse http://ideone.com/1gau2Z 

 

2) Change the variables properties to Double Data Types.

Change line no.13 to:
double first_number, second_number, answer;
Change line no.14, 15 to:
first_number = 10.5;
second_number = 20.8;
Outcome:

REFERENCE

 

---

No comments:

Post a Comment