diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/ex3.iml b/.idea/ex3.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/ex3.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3cd772c --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..7e5d55a --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..98323ef --- /dev/null +++ b/index.php @@ -0,0 +1,22 @@ + $basicPayment, "loanPayment" => $interestPayment, "balance" => $loanSum]; + } + return $paymentsByMonth; +} +$rate = (float)readline("Годовая ставка:"); +$cost = (float)readline("Стоимость недвижимости:"); +$contribution = (float)readline("Размер первоначального взноса:"); +$period = (int)readline("Cрок ипотеки в месяцах:"); +print_r(CalculatePay($rate,$cost,$contribution,$period)); + +?> \ No newline at end of file