#include <stdio.h>

int a, b;

void main()
{
scanf("%d %d", &a, &b);
if (a > b)
printf("%d is bigger than %d.\n", a, b);
else
printf("%d is bigger than %d.\n', b, a);
}


#include <stdio.h>

int z, absZ;

void main()
{
scanf("%d", &z);
if (z < 0)
absZ = z * (-1);
else
absZ = z;
printf("The absolute value of %d is %d.\n", z, absZ);
}

#include <stdio.h>

int z;

void main()
{
scanf("%d", &z);
if (z > 0)
printf("%d is positive.\n", z);
else if (z < 0)
printf("%d is negative.\n", z);
else
printf("%d is zero.\n", z);
}

#include <stdio.h>

int z;

void main()
{
scanf("%d", &z);
if (z > 0)
printf("%d is positive.\n", z);
else
printf("%d is negative.\n", z);
}

+ Recent posts