julio 14, 2006

snif snif...

x=0;
fprintf('Oprima "1" si desea convertir celsius a fahrenheit\nOprima "2" si desea convertir fahrenheit a celsius\n');
e=input('¿Qué opción prefiere? ');
for n=1
if e==1
y=input('Ingrese la temperatura actual en grados celsius ');
x=32+(9/5)*y;
fprintf('La temperatura actual es %f grados fahrenheit\n',x)
end
if e==2
y=input('Ingrese la temperatura actual en grados fahrenheit ');
x=(5/9)*(y-32);
fprintf('La temperatura actual es %f grados celsius\n',x)
end
end


Jajaja... the return of the prodigal sorcerer!!!
MATLAAAAAAAB!!!!! Toooooomen!!! (la wea perna y fácil...)

No hay comentarios.: