Department numbers: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|Rust}}: Applied rustfmt) |
||
Line 2,664: | Line 2,664: | ||
=={{header|Rust}}== |
=={{header|Rust}}== |
||
{{trans|C}} |
{{trans|C}} |
||
<lang rust> |
<lang rust>extern crate num_iter; |
||
⚫ | |||
extern crate num_iter; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{ |
|||
⚫ | |||
⚫ | |||
if police != sanitation |
|||
⚫ | |||
&& sanitation != fire |
|||
&& fire != police |
|||
⚫ | |||
&& police + fire + sanitation == 12 |
|||
⚫ | |||
{ |
|||
⚫ | |||
⚫ | |||
if police!=sanitation && sanitation!=fire && fire!=police && police+fire+sanitation==12 { |
|||
} |
|||
⚫ | |||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
⚫ | |||
} |
|||
} |
|||
⚫ | |||
=={{header|Scala}}== |
=={{header|Scala}}== |