Skip to content

Instantly share code, notes, and snippets.

@KrystianGraba
Created April 29, 2020 11:59
Show Gist options
  • Select an option

  • Save KrystianGraba/51025373dcb266ccd1d8fdfadec46f9e to your computer and use it in GitHub Desktop.

Select an option

Save KrystianGraba/51025373dcb266ccd1d8fdfadec46f9e to your computer and use it in GitHub Desktop.
#include <iostream>
#include <time.h>
#include <stdlib.h>
using namespace std;
int main()
{
cout << "Losowanie liczb: " << endl;
//losowanie
int los;
srand(time(NULL));
for (int i = 0; i < 3;i++) {
cout << "Liczba nr " << i+1 << " to: " << (rand() % 20 + 10) << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment