Question:

Algorithm that takes a number as input then gives an output saying whether the number is odd or even?

by  |  earlier

0 LIKES UnLike

 Tags:

   Report

1 ANSWERS


  1. Allow input of a number, if it is not an integer then ask for a different number. When the number is an integer [no fraction] divide it by 2 and specify a remainder value to be retained. If the remainder is zero then the number is even and output an appropriate message, otherwise a non-zero remainder indicates the number is odd and output a relevant message saying that

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.