Java Script 3 Assuming that you have two integer variables x
(Java Script)
3.) Assuming that you have two integer variables, x and y, write code that outputs yes if x is more than three times y.
4.) Assuming that you have two integer variables, x and y, write code that outputs yes if x is more than three times y and no otherwise.
Solution
3)
if (x>3*y) {
document.write(\"Yes\");
}
4)
if (x>3*y) {
document.write(\"Yes\");
}
else
{
document.write(\"No\");
}
