C Programming Reference >> C Basic Tutorials >> C Keywords Home >> ifui 30/12/06 - Views - Ratings : If is one the most frequnetly used keyword . It is used for condtion checking. It can also accompany an else block which is executed when if condition fails. Else block is optional. Code - void function (void)
{
int a,b;
scanf ("%d %d", &a, &b);
if (a==b) printf ("A equals to B");
else printf ("A not equals to B");
}
|