top of page

Formula Física
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
//Declaracion
int Vi,a,t;
double Vf,d,Vf2;
//Asignacion
cout<<"Ingresar Velocidad Inicial : ";cin >>Vi;
cout<<"Ingresar Aceleracion : ";cin >>a;
cout<<"Ingresar el Tiempo : ";cin>>t;
//Proceso
Vf = Vi+(a*t);
d = ((Vi+Vf)/2)*t;
Vf2 = pow(Vi,2)+2*a*d;
//Resultado
cout<<"La Distancia es : "<<d<<endl;
cout<<"La Velocidad Final es : "<<Vf<<endl;
cout<<"LA Velocidad Final al Cuadrado es : " <<Vf2<<endl;
}


bottom of page