Expert in study
alarm
Ask
Computer Science
Biagi Biagi Dec 10, 2020

Write a program to determine whether an input number is an odd number​

answers: 1
Register to add an answer
The time for answering the question is over
Answer:

Enter an integer: -7 -7 is odd. In the program, the integer entered by the user is stored in the variable num . Then, whether num is perfectly divisible by 2 or not is checked using the modulus % operator. If the number is perfectly divisible by 2 , test expression number%2 == 0 evaluates to 1 (true).

HOPE THIS ANSWER HELPS YOU ...

435
tissue tissue
Dec 10, 2020
For answers need to register.
Contacts
mail@expertinstudy.com
Feedback
Expert in study
About us
For new users
For new experts
Terms and Conditions