Start

Integer Number,S

Input Number

S=Number%2

if(S==0)

output "Even"

else

output "Odd"

end if

stop

Integer Number,S

Input Number

S=Number%2

if(S==0)

output "Even"

else

output "Odd"

end if

stop

Start

Integer Number,S

Input Number

S=Number%2

if(S==0)

output "Even"

else

output "Odd"

end if

stop

Integer Number,S

Input Number

S=Number%2

if(S==0)

output "Even"

else

output "Odd"

end if

stop

When a number is divided by 2 and get zero in remaining then that number is even number and when we get some value in remaining then it is called odd numbers.

A NUmber divided by 2 having remaining zero ( 0 ) is an even number & a number divided by 2 and having remaining 1 is called odd numbers .

Didn't find the answer you were looking for?