Advertisement
qgustavor

Função que calcula a idade

Sep 27th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.21 KB | None | 0 0
  1. function idade=calculaidade(nascimento)
  2.   // http://help.scilab.org/docs/5.4.1/en_US/clock.html
  3.   // clock = [year month day hour minute seconds]
  4.   hoje = clock();
  5.   idade = hoje(1) - nascimento;
  6. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement