Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
//radio
Lenguaje de Programacin
Lenguaje de Programacin
Carlos que v en bicicleta a una velocidad de 15m/s. En cunto tiempo pasar Mario a la bicicleta de 15m de largo que marcha en la misma direccin?
#include <string> using namespace std; #define NUEVALINEA '\n'; int main (){ //va=velocidad del auto, vt=velocidad del tren,l distancia, ta tiempo de alcanse. double Va,Vt,L; double ta; string mensaje; mensaje = "ESPINOZA CUZCANO ALEXIA"; cout << mensaje << endl; cout << "iIntroducir la distancia" << endl; cin >> L; cout <<"Introducir la velocidad de la bicicleta" << endl; cin >> Va; cout <<"Introducir la velocidad de Mario" << endl; cin >> Vt; cout << NUEVALINEA;
mensaje = "EL TIEMPO DE ALCANCE ES:"; cout << mensaje << endl; ta=L/(Va-Vt); cout <<ta; cout << NUEVALINEA; system ("pause"); return 0; }
Lenguaje de Programacin
#include <iostream> #include <string> using namespace std; #define NUEVALINEA '\n'; int main (){ //d=ditancia, t=tiempo, v=velocidad. double d,t,v; string mensaje; mensaje = "ESPINOZA CUZCANO ALEXIA"; cout << mensaje << endl; cout << "Introducir el tiempo " << endl; cin >> t; cout <<"Introducir la velocidad" << endl; cin >> v; cout << NUEVALINEA; mensaje = "LA DISTANCIA ES:"; cout << mensaje << endl; d=v*t; cout <<d; cout << NUEVALINEA; system ("pause"); return 0; }
Lenguaje de Programacin
Lenguaje de Programacin
Lenguaje de Programacin
Lenguaje de Programacin
Lenguaje de Programacin
Lenguaje de Programacin