vansteenkistejoren
Published © GPL3+

Learn Methods

In this simple, basic tutorial you will learn how to make your own, custom methods!

BeginnerProtip2,597
Learn Methods

Things used in this project

Story

Read more

Schematics

Schematics

Actually, this is just a coding tutorial, so you only need the arduino bord to upload your sketch.

Code

SIMPLE EXAMPLE

C/C++
Here's a basic example of what a code could look like.
int a = 1;
int b = 7;
int c = 5;
int d = 8;

int outcome1;
int outcome2;
int outcome3;

void setup() 
{
    
}

void loop() 
{
  outcome1 = MultyplyNumbers(a , b);
  outcome2 = MultyplyNumbers(c , b);
  outcome3 = MultyplyNumbers(outcome1 , outcome2);
}

int MultyplyNumbers(int x , int y)
{
  return x * y;
}

Credits

vansteenkistejoren
0 projects • 2 followers
Contact

Comments

Please log in or sign up to comment.