Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DoubleFor {
- public static void main(String[] args) {
- for (double d = 0.1; d <= 1; d += 0.1 ){
- System.out.println("d = " + d);
- }
- }
- public class DoubleFor {
- public static void main(String[] args) {
- for (double d = 0.1; d <= 1; d += 0.1 ){
- System.out.println("d = " + Math.round(d*10));
- }
- }
Add Comment
Please, Sign In to add comment