function conversao($temp) {
if (($temp = 68)) print "20";
if (($temp = 212)) print "100";
}Não consigo ver o que está errado. Alguém pode me ajudar?
Edição feita por: aacj03, 19/07/2006, 01:26.
Posted 19/07/2006, 01:26
function conversao($temp) {
if (($temp = 68)) print "20";
if (($temp = 212)) print "100";
}Edição feita por: aacj03, 19/07/2006, 01:26.
Posted 19/07/2006, 01:34
function conversao($temp) {
//Se a temperatura for 68
if ($temp == 68){
print "20";
}
//Se a temperatura for 212
if ($temp == 212)
{
print "100";
}
}Posted 19/07/2006, 07:12
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)