Skip to content

Commit 3118c06

Browse files
Merge pull request rage#257 from wiljav/master
Update 6-conditional-statements.md
2 parents 1612e84 + 7077129 commit 3118c06

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

data/part-2/4-methods.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,24 @@ The sum of numbers 2 and 4 is 6
656656

657657
Write a method `public static void division(int numerator, int denominator)` that prints the result of the division of the numerator by the denominator. Keep in mind that the result of the division of the integers is an integer -- in this case we want the result to be a floating point number.
658658

659+
<!-- ```java
660+
public static void main(String[] args) {
661+
jakolasku(3, 5);
662+
}
663+
``` -->
664+
665+
```java
666+
public static void main(String[] args) {
667+
division(3, 5);
668+
}
669+
```
670+
671+
<sample-output>
672+
673+
0.6
674+
675+
</sample-output>
676+
659677
</programming-exercise>
660678

661679

0 commit comments

Comments
 (0)