Скачать
Trick | Check Even/Odd Number without using % (modulo operator)
Автор: Codingflag
Загружено: 2020-12-23
Просмотров: 1035
Описание:
Hello everyone, in this video we will see how you can easily check whether number is even or odd without using modulo operator. Modulo operator is very heavy operator. Instead of this we can use & operator.
if(n & 1 == 0){
print(“even”);
} else {
print(“odd”);
}
Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: