Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int x,y,z = 0;
- int main()
- {
- cout << "Losowanie z liczby od 1 - 100" << endl;
- x = (rand()%100)+1;
- while(y<2*x+3){
- if(y<=x){
- y++;
- cout << z++ << endl;
- }
- else{
- y++;
- cout << z-- << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement