19 of 100 menu

C++ Taskbook Level 2.9

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

Given an array of integers:

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

Swap the first and second elements of this array:

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

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

int num = 1;

Determine whether this variable contains a weekend or a weekday.

Given a variable containing temperature in degrees Celsius:

short tc = 25;

Write a program that converts this temperature to degrees Fahrenheit.

enru