Last active
September 18, 2015 18:22
-
-
Save motine/14ac53cf0171e66e9cd8 to your computer and use it in GitHub Desktop.
use STA to print a number.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "sketchbook.h" | |
void setup() { | |
} | |
void draw() { | |
int result = 77; // this would be your solution | |
// use the following code to output the result | |
char buffer[100]; | |
sprintf(buffer, "%i", result); | |
text(10, 10, buffer); | |
// stop draw from being called again and again | |
stop(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment