C++ Taskbook Level 2.9

Задание 1

Use a loop to fill the array with even numbers from 1 to 100.

Задание 2

Given an array of integers:

cppint[] {1, 2, 3, 4, 5};

Swap the first and second elements of this array:

cppint[] {2, 1, 3, 4, 5};
Задание 3

Given an integer containing the day of the week number from 1 to 7:

cppint num = 1;

Determine whether this variable contains a weekend or a weekday.

Задание 4

Given a variable containing temperature in degrees Celsius:

cppshort tc = 25;

Write a program that converts this temperature to degrees Fahrenheit.