Computer Science, asked by ashadulislam514, 1 year ago

write an algorithm to find whether a given number is odd or even

Answers

Answered by KShubham
4

here's a function definition to do the above given task.

void check ( float x)

{ if (x%2==0)

{ cout<<"The number is an even number";

}

else

{cout<<"The number is an odd number";

}

return 0 ;

}

Similar questions