This does it for integer values - you can use the same technique for shorts, longs and floats.
#include <stdio.h>
int main(int argc, char* argv, char* envp)
{
/* set two values */
int a = 20;
int b = 10;
if ( a > b )
{
printf(" a is bigger than bn");
}
else
{
printf("b is bigger than an");
}
return 0;
}
#include <stdio.h>
int main(int argc, char* argv, char* envp)
{
/* set two values */
int a = 20;
int b = 10;
if ( a > b )
{
printf(" a is bigger than bn");
}
else
{
printf("b is bigger than an");
}
return 0;
}