Skip to content

AmramAnanyan/conditional-operators-loops

Repository files navigation

Required Tasks

. Given a number. Print “odd” if the number is odd and “even” if itʼs even.

Given two variables, which are the angles of a triangle. Find the third angle of the triangle. (Sum of

the angles of a triangle equals 180 degrees).

Given a positive integer. Bring the last digit of the number to the beginning. Print the new number. If

the last digit of the inserted number is 0, number remains the same.

Find the sign of product of three numbers without multiplication operator. Display the specified sign.
Given an array of strings. Find the strings with maximum and minimum lengths in array. Print the sum

of their lengths.

Given an array of numbers and a number. Find the index of a first element which is equal to that

number. If there is not such a number, that find the index of the first element which is the closest to it.

. Given an array of strings and numbers. Print the number of integers and the number of strings in the

array.

Given mixed array of numbers, strings, booleans, nulls and undefined. Filter array and get all the

numbers in a separate array. Arrange them such as from the beginning are the odds and from the ending the evens.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published