Professional Documents
Culture Documents
If Cond Lec Assessment 2 Justine Grace G.
If Cond Lec Assessment 2 Justine Grace G.
SECTION: 1BSIT-3
OUTPUT:
Value of x is -4
Value of y is 14
Value of c is 11
SYNTAX:
c= y + x * -4;
y += c;
x -= 3;
if (x>0)
{
x++;
}
if ((c>=20) || (y > 8))
{
y += x;
}
else
{
y %= 3;
x *= c;
c--;
}
System.out.println("Value of x is " + x);
System.out.println("Value of x is " + y);
System.out.println("Value of x is " + c);
}
}