SHARE
TWEET

Untitled

a guest Mar 26th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int tAtual = 0;
  2. int vAtual = 15;
  3. int dAtual;
  4.  
  5. void setup() {
  6.     frameRate(1);
  7. }
  8.  
  9. void draw() {
  10.     dAtual = MRU(vAtual, tAtual);
  11.     println("Tempo: " + tAtual + " segundos", "Dist├óncia: " + dAtual +" metros");
  12.     tAtual++;
  13.   }
  14.  
  15. int MRU(int v, int t) {
  16.   int d;
  17.   d = v * t;
  18.   return d;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top