Skip to content

Instantly share code, notes, and snippets.

View gist:305e4b79c0210c3a049c
#include <iostream>
using namespace std;
int main()
{
double tab[10] = { 7, 8, 6, 4, 5, 9, 0, 3, 1, 2 };
double srednia = 0;
for (int i = 0; i < 10; i++)
{
cout << tab[i] << "\t";
}
View gist:8a1b063b24946cf05b895938751d4a3f
void setup() {
// put your setup code here, to run once:
pinMode(8,OUTPUT); //DIODA 1
pinMode(9,OUTPUT); //DIODA 2
pinMode(10,OUTPUT); // DIODA 3
pinMode(11,OUTPUT); // DIODA 4
pinMode(12,OUTPUT); // BUZZER
pinMode(13,INPUT); // input dla przycisku
}
You can’t perform that action at this time.