c program of given number is   even or odd using if else


in c   if.. else control used for making a decision and chose branch means that if a condition is true control enter in if body otherwise else body(block/scope).

syntax 

if(condition)

{

statements at least one  ;

}

else

{

statements  at least one ;

}


write a c program Given any number display it is  even or odd  using if…else decision making and branching control

output of  odd – even  program

Enter any value : 15

15 is Odd

(Visited 31 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image