main()
{
var fixbug = ((Input_Upper - Input_Lower)/100);
var expres = ((Output_Upper - Output_Lower)/100)*(Input - Input_Lower);
if (Input_Upper == Input_Lower)
{
fixbug = 1;
expres = 0;
}
Output = expres/fixbug + Output_Lower;
}
исходник:
http://www.vjhive.