+ 1

Odd variables

how to say (if the variable is odd) in c++

21st Mar 2017, 7:38 AM
Huda Zaher
Huda Zaher - avatar
2 ответов
+ 6
cin>>num; if (num % 2 != 0) cout<<"odd number";
21st Mar 2017, 8:40 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 2
if (var % 2 != 0){ cout<<"Odd" }
21st Mar 2017, 8:40 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar