3
05/11/2024 2:54 오후
주제 스타터
Write a program that converts British pounds(real number) to dollars formatted to 3th decimal point.
1 British Pound = 1.31 Dollars
예시:
2개 답글
3
05/11/2024 2:55 오후
My solution:
<?php $inputPounds = readline(); $dollar = $inputPounds * 1.31; echo number_format($dollar,3,'.','');
2
05/11/2024 2:56 오후
On 1 line:
<?php echo number_format(readline()*1.31,3,'.','');