Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pętlee9;
- import java.util.Scanner;
- public class PętleE9 {
- public static void main(String[] args) {
- double jard,stopa,mil,cal;
- System.out.println("metry cale stopy jardy mile");
- for (int i= 5; i <=100; i+=5){
- jard=i/0.9144;
- stopa=i/0.3048;
- mil=i/0.00062137;
- cal=i/0.0256;
- System.out.println(i+" "+cal+" "+stopa+" "+jard+" "+mil+" ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement