FREE TUTORIALS ON C programming

Sunday, January 26, 2014

The strength of any programming language lies in its ability to change the course of processing based upon the result of some expressions.

IF STATEMENT:

#include<stdio.h>

int main()
{

   int a = 25 ;

   int b = 65;

   if(a < b)

{
 printf("%d",a);
 
}

return 0;


}

IF ELSE IF STATEMENT:


#include<stdio.h>

int main()
{

   int a = 25 ;

   int b = 65;

   if(a < b)

{
 printf("%d",a);
 
}

else if(a > b)
{
 
 printf("%d",b);
 
}

return 0;


}

IF ELSE STATEMENT:

#include<stdio.h>

int main()
{

   int a = 25 ;

   int b = 65;

   if(a < b)

{
 printf("%d",a);
 
}

else

{
 
     printf("%d",b);

}

return 0;


}



8:00 PM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search