What is IF else Statement?

Ans:-
        IF else Statement:-

                                               C language also lets one choose between two statement by using the if else structure.

Syntax:-

                if(expression)
                {
                
               Statement;

                   }
                else
                {
              
                  Statement;

                 }

Example:-

                 if(num>20)
                 {
 
                  Result =2*num;

                   }
               else
               {

                result=3*num;
              }
========================================================================

                   If you face any problem so contact me Thank you 

Contact :- https://www.facebook.com/Teach.Coding


Post a Comment

Emoticon
:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

Protected

Protected by Copyscape
 
Learn Programming © 2017. All Rights Reserved. Shared by WpCoderX
Top