Monday, May 20, 2013

C Programming - If - Statement Decision

Explanation:

Para makagawa ka ng If Statement, gumawa tayo ng basic Math Problem. Which number
is greater than (>) less than (<) or equal (=).

Unahin nating ilagay ang 2 numbers mo which is num1 and num2.
Then make a printf "Enter 2 numbers"
Then ipascanf mu ang dalawang numbers %d%d << 2 numbers
then your num1 and num2

Ngayon, gawa na tayo ng If statement.
if (num1 or your first number na nilagay mo is = to num2 na nilagay mong second number)
make a printf and say ("they are equal")
if (num1 is < num2)
make a printf and say (%d or this value or number is less than %d also to this number)
if (num1 is > num2)
make a printf and say (%d is greater than %d)


Output :