Advertisement
qgustavor

Procedimento que calcula a idade

Sep 27th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.22 KB | None | 0 0
  1. function 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.   disp("A idade é " + string(hoje(1) - nascimento));
  6. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement