Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int a,b=0;
- srand( time( NULL ) );
- for(int i=0;i<99;i++)
- {
- a=(rand()%16+20);
- cout<<a<<endl;
- if(a>32)
- {
- b++;
- }
- }
- cout<<"Wylosowano "<<b<<" liczb wiekszych od 32";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement