#include <string.h>
#include <stdio.h>
#define str1 "test7"
#define str2 "test1"
#define str3 "test7"
int main()
{
int a = 1, b = 3, c = 0, d = 10;
if (!c)
printf("c(%i) is equal to or less than 0\n", c);
else
printf("c(%i) is not equal to and is greater than 0\n", c);
if (a > c)
printf("a(%i) is greater than c(%i)\n", a, c);
else
printf("a(%i) is less than c(%i)\n", a, c);
if (a >= c)
printf("a(%i) is equal to or greater than c(%i)\n", a, c);
else
printf("a(%i) is not equal to or is less than c(%i)\n", a, c);
if (a < b)
printf("a(%i) is less than b(%i)\n", a, b);
else
printf("a(%i) is greater than b(%i)\n", a, b);
if (a <= c)
printf("a(%i) is equal to or less than c(%i)\n", a, c);
else
printf("a(%i) is not equal to or is greater than c(%i)\n", a, c);
if ((a > c) || (b < d))
printf("a(%i)>c(%i) b(%i)<d(%i) (statement true)\n", a, c, b, d);
else
printf("a(%i)>c(%i) b(%i)<d(%i) (statement false)\n", a, c, b, d);
if ((d > a) && (b > a))
printf("d(%i) is greater than a(%i)\nb(%i) is greater than a(%i)\n",
d, a, b, a);
else
printf("statement: d(%i) > a(%i) and b(%i) > a(%i) is false\n",
d, a, b, a);
if (a != b)
printf("a(%i) is not equal to b(%i)\n", a, b);
else
printf("a(%i) is equal to b(%i)\n", a, b);
if (strlen(str1) == strlen(str2))
printf("%s length: %d is equal to %s length: %d\n", str1, strlen(str1),
str2, strlen(str2));
else
printf("%s length: %d is not equal to %s length: %d\n", str1, strlen(str1),
str2, strlen(str2));
if (!(strncmp(str1, str3, strlen(str1))))
printf("%s and %s are the same\n", str1, str3);
else
printf("%s and %s are not the same\n", str1, str3);
return 0;
}