Помогите найти ошибку | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Помогите найти ошибку

#include <iostream> using namespace std; int main() { int a; cin >> a; if(a>=10 & a<=99) if(a%8==0) cout<<a; else cout << "NO"; return 0; }

25th Dec 2020, 7:12 PM
София Верещагина
София Верещагина - avatar
1 Answer
+ 1
Use && instead of &. & is bitwise operator. && is relational operator. Используйте && вместо &. & - побитовый оператор. && - оператор отношения.
25th Dec 2020, 7:30 PM
Jayakrishna 🇮🇳