Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GalToLitTable1 {
- public static void main(String args[]) {
- double meters, inches;
- int counter;
- counter = 0;
- for(inches = 1; inches <=100; inches++) {
- meters = inches * 39.37;
- System.out.println(inches + " Duimam sootvetsvuet " +
- meters + " metrov. ");
- counter++;
- if(counter == 12) {
- System.out.println();
- counter = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement