Created
April 29, 2020 11:59
-
-
Save KrystianGraba/51025373dcb266ccd1d8fdfadec46f9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 <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