Призначення Змінних
У програмуванні різні мови та середовища пропонують різні способи присвоєння значень змінним.
У R доступні специфічні оператори присвоєння, такі як <-
та ->
, поряд з більш універсально визнаним оператором =
. На даному етапі різниця між цими операторами не є значною, але ми повернемося до цього питання при обговоренні функцій.
Swipe to start coding
- Use the 'equal' (
=
) operator to assign the result of integer division of29
by8
to the variable namedequal
. - Use the 'left-arrow' (
<-
) operator to assign the remainder of the division of29
by8
to the variableleft
. - Use the 'right-arrow' (
->
) operator to assign theequal
variable raised to the power ofleft
to theright
variable. - Display all three variable values in the order they were created with the
cat()
function.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 3.85
Призначення Змінних
Свайпніть щоб показати меню
У програмуванні різні мови та середовища пропонують різні способи присвоєння значень змінним.
У R доступні специфічні оператори присвоєння, такі як <-
та ->
, поряд з більш універсально визнаним оператором =
. На даному етапі різниця між цими операторами не є значною, але ми повернемося до цього питання при обговоренні функцій.
Swipe to start coding
- Use the 'equal' (
=
) operator to assign the result of integer division of29
by8
to the variable namedequal
. - Use the 'left-arrow' (
<-
) operator to assign the remainder of the division of29
by8
to the variableleft
. - Use the 'right-arrow' (
->
) operator to assign theequal
variable raised to the power ofleft
to theright
variable. - Display all three variable values in the order they were created with the
cat()
function.
Рішення
Дякуємо за ваш відгук!
Awesome!
Completion rate improved to 3.85single