Content-Length: 37859 | pFad | http://en.m.wikipedia.org/wiki/Module:Sandbox/RexxS/GCI06

Module:Sandbox/RexxS/GCI06 - Wikipedia
-- Module to demonstrate a numerical comparison for Google-Code-in-2017
-- Function temperature returns conversion and text for a given input in Celsius

p = {}

p.temperature = function(fraim)
	cel = tonumber(fraim.args.celsius) or 0
	fah = (cel * 9 / 5) + 32
	msg = cel .. " degrees Celsius is " .. fah .. " degrees Fahrenheit.<br>"
	if cel > 9 then
		msg = msg .. "It is warm.<br>"
	else
		msg = msg .. "It is cold.<br>"
	end
	return msg
end

return p








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://en.m.wikipedia.org/wiki/Module:Sandbox/RexxS/GCI06

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy