fork download
  1. class MetrToInchTab {
  2. public static void main (String args []) {
  3. double inch, metrs;
  4. int counter;
  5. counter = 0;
  6. for (metr = 1; inch<= 100; inch ++) {
  7. inch = metr * 39.37;
  8. System.out.println (metr + " Metr equal " + inch + " inches.");
  9. counter ++;
  10. if (counter == 12) {
  11. System.out.println ();
  12. counter=0;
  13. }
  14. }
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:6: error: cannot find symbol
        for (metr = 1; inch<= 100; inch ++) {
             ^
  symbol:   variable metr
  location: class MetrToInchTab
Main.java:7: error: cannot find symbol
            inch = metr * 39.37;
                   ^
  symbol:   variable metr
  location: class MetrToInchTab
Main.java:8: error: cannot find symbol
            System.out.println (metr + " Metr equal " + inch + " inches.");
                                ^
  symbol:   variable metr
  location: class MetrToInchTab
3 errors
stdout
Standard output is empty