Правой кнопкой мыши по папке
свойства далее все увидите
#include "iostream"
#include "stdlib.h"
#include "ctime"
using namespace std;
int main()
{
srand(time(NULL));
int snow = 0, rain = 0;
int osadok[31];
int t_weather[31];
for(int i = 0 ; i < 31; i++){
osadok[i] = rand()% 50;
t_weather[i] = rand()% 25 - 5;
}
for(int i = 0 ; i < 31; i++){
cout << osadok[i] << " - " << t_weather[i] << endl;
}
for(int i = 0; i < 31; i++){
if(t_weather[i] > 0){
rain = rain + osadok[i];
}else{
snow = snow + osadok[i];
}
}
cout << "Amount of osadok of snow: " << snow << endl;
cout << "Amount of osadok of rain: " << rain << endl;
return 0;
}
Var
a: integer;
begin
a := 0;
writeln('enter the value: ');
read(a);
if a < 0 then
write('negative')
else
write('positive');
if a mod 2 = 0 then
write(' even')
else
write(' odd');
end.