/* | \ | \ / \| \ (C) Rafael Menendez de Ll. Rozas | $$$$$$$\| $$\ / $$| $$$$$$$\ Version 1.0 | $$__| $$| $$$\ / $$$| $$__| $$ Entrada: tiempo | $$ $$| $$$$\ $$$$| $$ $$ Salidas: Velocidad y aceleracion | $$$$$$$\| $$\$$ $$ $$| $$$$$$$\ Algoritmo: Mel O'invento | $$ | $$| $$ \$$$| $$| $$ | $$ Fecha: 03/10/18 | $$ | $$| $$ \$ | $$| $$ | $$ Contacto: +34 123456789 \$$ \$$ \$$ \$$ \$$ \$$ Dir.: c/ El bit loco n. 33 */ #include #include int main() { int tiempo; long double velocidad, aceleracion; // Entrada y salida printf("Introduce el valor del tiempo en segundos :\n"); scanf("%d", &tiempo); // Calculo velocidad = 0.0001L * tiempo * tiempo * tiempo -0.0053L * tiempo * tiempo + 0.855L * tiempo + 155.55L; aceleracion = 5.0L - 0.556L * tiempo * tiempo; // Resultado printf("La velocidad es %.3Lf y la aceleracion es %.3Lf \n", velocidad, aceleracion); } // fin de main