#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
void losuj()
{
int a;
srand(time(NULL));
for (int i=0; i<50; i++)
{
a=(rand()%301)+100;
cout << a << " ";
}
}
void sumuj()
{
int suma=0;
for (int i=100; i<=800; i++)
{
if (i%2==0) suma=suma+i;
}
cout << "Suma wynosi: " << suma;
}
void ciag()
{
for (int i=250; i>=30; i--)
{
cout << i << " ";
}
}
int main()
{
losuj();
cout << endl;
cout << endl;
sumuj();
cout << endl;
cout << endl;
ciag();
return 0;
}