programmingex5 4 java

Solutions on MaxInterview for programmingex5 4 java by the best coders in the world

showing results for - "programmingex5 4 java"
Emmanuel
01 Mar 2018
1public class ProgrammingEx5_4 {
2 
3 public static void main(String[] args) {
4  final int END = 10;
5 
6  // printing table header
7  System.out.printf("%-9s%15s\n", "Miles", "Kilometers");
8 
9  for (int i = 1; i <= END; i++) {
10   System.out.printf("%-9d%15.1f\n", i, i * 1.609);
11 
12  }
13 
14 }
15 
16}
17
similar questions
queries leading to this page
programmingex5 4 java