Tema: Run failed
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/10/2014, 10:56
icm9
 
Fecha de Ingreso: septiembre-2014
Mensajes: 66
Antigüedad: 9 años, 7 meses
Puntos: 1
Run failed

Este es el codigo:
Código C++:
Ver original
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.     int r1,r2,r3;float Rt;
  5.     r1= 56;r2 = 33; r3=15;
  6.     Rt= 1/(1/r1+1/r2+1/r3);
  7.     cout<< Rt<<endl;
  8.     return 0;
  9. }

no me muestra nada y termina el programa.
hay algo que hice mal con el float?

si lo compilo desde la consola me dice:
Código:
resistores.cpp:9:2 warning: no newline at end of file

Última edición por icm9; 29/10/2014 a las 11:02