...
/Solution: Find Twice and One Fifth of a Floating Point Value
Solution: Find Twice and One Fifth of a Floating Point Value
Here is the solution to the challenge asked in the previous lesson.
We'll cover the following...
Solution #
Here is the solution to the challenge.
Press + to interact
import std.stdio;void TwiceAndOneFifth() {double value = 2.37;double twice;double oneFifth;twice = value * 2;oneFifth = value / 5;write("Twice = ",twice," and One Fifth = " ,oneFifth);}