4 глава
This commit is contained in:
parent
e0caa7caab
commit
ec805e7f08
15 changed files with 1584 additions and 1 deletions
17
03-инструкции/src/chapter-3-7-4/app.d
Normal file
17
03-инструкции/src/chapter-3-7-4/app.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
import std.math, std.stdio;
|
||||
|
||||
void main()
|
||||
{
|
||||
foreach (float elem; 1.0 .. 100.0)
|
||||
{
|
||||
writeln(log(elem)); // Получает логарифм с одинарной точностью
|
||||
}
|
||||
foreach (double elem; 1.0 .. 100.0)
|
||||
{
|
||||
writeln(log(elem)); // Двойная точность
|
||||
}
|
||||
foreach (elem; 1.0 .. 100.0)
|
||||
{
|
||||
writeln(log(elem)); // То же самое
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue