Advertisement
Varasku

Przeliczanie tabela for

Oct 25th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. package pętlee9;
  3.  
  4. import java.util.Scanner;
  5.  
  6.  
  7. public class PętleE9 {
  8.  
  9. public static void main(String[] args) {
  10. double jard,stopa,mil,cal;
  11. System.out.println("metry cale stopy jardy mile");
  12. for (int i= 5; i <=100; i+=5){
  13. jard=i/0.9144;
  14. stopa=i/0.3048;
  15. mil=i/0.00062137;
  16. cal=i/0.0256;
  17.  
  18. System.out.println(i+" "+cal+" "+stopa+" "+jard+" "+mil+" ");
  19. }
  20.  
  21.  
  22.  
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement