Var DepHour,DepMin,DurHour,DurMin,ArrHour,ArrMin:integer; begin readln(DepHour,DepMin,DurHour,DurMin); if DepMin+DurMin>=60 then begin ArrHour:=DepHour+DurHour+1; ArrMin:=DepMin+DurMin-60; end else begin ArrHour:=DepHour+DurHour; ArrMin:=DepMin+DurMin; end; write(ArrHour,':',ArrMin); end.
#include <iostream>
using namespace std;
int main() {
setlocale(LC_ALL, "Rus");
int month;
cout << "Введите номер месяца: ";
cin >> month;
if (month == 12 or month == 1 or month == 2)
cout << "Зима";
else if (month == 3 || month == 4 || month == 5)
cout << "Весна";
else if (month == 6 || month == 7 || month == 8)
cout << "Лето";
else if (month == 9 || month == 10 || month == 11)
cout << "Осень";
else
cout << "Нет такого номера месяца!";
return 0;
}