![]() |
Loop counting odd and even numbers I want a way (a code in c or c ++) to display the result of given number,The best way to see if a given number is odd or even. Any recommendations and suggestions are appreciated. |
Re: Loop counting odd and even numbers Code: int main() |
Re: Loop counting odd and even numbers Code: long oddno =1; |
Re: Loop counting odd and even numbers Use the AND operation. Code: for(int i=0;i<=100;i++) |
All times are GMT +5.5. The time now is 10:18 AM. |