Q.) Write a Algorithm to find out number is odd or even .
Sol.)
Step 1: Start
Step 2: Input Number
Step 3: rem=Number mod 2
Step 4: if rem=0 then,
print "EVEN number"
else
print "ODD number"S
Step 5: Stop
No comments:
Post a Comment