Inicio
Celsius, Fahrenheit: real
Write "Introduzca la temperatura en grados Celsius: ",
Read Celsius
Fahrenheit = (9.0/ 5.0) * Celsius + 32.0
Write "La temperatura en grados Fahrenheit es: ", Fahrenheit
Fin
Inicio
a, b, c, x, Resultado: real
Write "Calculo del Polinomio de segundo orden ax^2 + bx +c"
Write "Introduzca el coeficiente del termino a:",
Read a
Write "Introduzca el coeficiente del termino b:",
Read b
Write "Introduzca el coeficiente del termino c:",
Read c
Write "Introduzca el coeficiente del termino x:",
Read x
Resultado = a*x*x + b*x + c
Write "El valor del polinomio es: ", Resultado
Fin
No hay comentarios:
Publicar un comentario