Jump to content

Map range: Difference between revisions

143 bytes added ,  11 months ago
m
Line 1,099:
print i, " : ", b1 + ( s - a1 ) * ( b2 - b1 ) / ( a2 - a1 )
 
next i</syntaxhighlight>
{{out| Output}}<pre>0 : -1
 
1 : -0.9000
end</syntaxhighlight>
2 : -0.8000
3 : -0.7000
4 : -0.6000
5 : -0.5000
6 : -0.4000
7 : -0.3000
8 : -0.2000
9 : -0.1000
10 : 0</pre>
 
=={{header|D}}==
305

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.