Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int numero, maximo;
- int main()
- {
- cout << "\n Indica el maximo numero aleatorio que puede sacar\n >>> ";
- cin >> maximo;
- numero = rand() % maximo;
- cout << " Numero aleatorio generado: " << numero;
- cin.sync();
- cin.get();
- main();
- }
Advertisement
Add Comment
Please, Sign In to add comment