Old Russian measure of length: Difference between revisions
Content added Content deleted
(Added Go) |
(→{{header|Go}}: Minor improvement.) |
||
Line 515: | Line 515: | ||
} |
} |
||
fmt.Println("\nThe equivalent in the remaining units is:\n") |
fmt.Println("\nThe equivalent in the remaining units is:\n") |
||
for i, |
for i, u := range units { |
||
if i == unit { |
if i == unit { |
||
continue |
continue |
||
} |
} |
||
fmt.Printf(" %10s : %g\n", |
fmt.Printf(" %10s : %g\n", u, float32(value)*convs[unit]/convs[i]) |
||
} |
} |
||
fmt.Println() |
fmt.Println() |