Guest User

Untitled

a guest
Apr 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. int LongitudTiempo(){
  2. if (FInicio.EsCorrecta()&& FFinal.EsCorrecta()){
  3. Fecha Nueva = FInicio;
  4. int Contador = 0;
  5. while(!Nueva.FechaEsIgual(FFinal)){
  6. Nueva.SiguienteDia();
  7. Contador = Contador + 1;
  8. }
  9. return Contador;
  10. }
  11. else{
  12. return -1;
  13. }
Add Comment
Please, Sign In to add comment