Advertisement
RuiViana

DE

Jan 27th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. float arr[] = {0.0, 46.0, 91.2, 134.7, 179.2};
  2. int N = sizeof(arr) / sizeof(float);
  3. //========================
  4. void setup()
  5. {
  6.   Serial.begin(9600);
  7. }
  8. //======================
  9. void loop()
  10. {
  11.   SomaCum(arr[3]);
  12. }
  13. //=======================
  14. void SomaCum(int V)
  15. {
  16.   float soma = V;
  17.   Serial.println(soma);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement