Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

You should use semi-colon (;), not colon (:) as shown below:

***
(x > y)? z = x : z = y;
console.log("Value of z:" + z);
***
one year ago
Here is a possible solution:
***



CSS Flex Shrink




Item 1

Item 2

Item 3




***
one year ago
Here is a possible solution:
***



CSS animation fill mode



Hello

Studytonight!



***
one year ago
Syntax is correct. It is supposed to be used in else-if condition as shown below:
***
else if(weather != "rainy")
{
console.log("I go to the office");
}
***
one year ago
As the error suggests, src attribute shouldn't be empty. For example:
***

***
one year ago
Hi there, try this code:
***



CSS transition-duration






***
one year ago
Seems you are in level 1 > lesson5. Here is a possible solution:
***
package main

import "fmt"

func main() {
fmt.Println("Welcome to GO Course")
/*
fmt.Println("We hope you like it")
*/
}
***
one year ago
Try this code:
***
#include

int main() {

printf("Character Garbage value - %c\n");
printf("Double Garbage value - %lf\n");

return 0;
}
***
one year ago
You are supposed to use 'x' as iterator not "keys" as shown below:
***
let course = {
name: "JS Course",
duration : "15 hours",
price: 499,
discount: "100%"
};

for(x in course)
{
console.log(`${x} is ${course[x]}`);
}
***
one year ago
I hope this helps.
***



My Webpage Title























Country Independence Day
India 15th August, 1947
USA 4th July, 1776
China 1st October, 1949



***
one year ago
The if condition (if(1)) is always true because the value inside the parentheses is 1. Therefore, the code inside the if block is executed, and it prints "Pass!" on the terminal.

The else if condition (else if(0)) is always false because the value inside the parentheses is 0. Since the if condition already passed, the else if condition is not checked, and its corresponding code block is not executed.

Finally, the else condition (else) is also not executed because the if condition passed. It is included here as a fallback option in case both the if and else if conditions fail. In this case, it would print "Fail" on the terminal. However, this code block is not reached in the given solution.

***
#include

int main() {
// This is the if condition, which always evaluates to true (1)
if(1)
printf("Pass!");
// This is the else if condition, which always evaluates to false (0)
else if(0)
printf("Fail");
else
printf("Fail");
// This is the else condition, which is executed if neither the if nor the else if condition passes
return 0;
}
***
one year ago
The first step is to create a new variable called xy by adding it to the variable list on line number 4. After adding it, the variable declaration would look like this:

***
int x, y, xy;
***

Next, on line number 8, a relational operator is used to compare the values of x and y. The specific relational operator checks if the values on the left and right sides are not equal. The result of this comparison is then set to the variable xy.

***
xy = (x != y);
***

In this case, x is compared using the inequality operator with y. If x is not equal to y, the result of the comparison is 1 (true). If x is equal to y, the result is 0 (false).

Finally, the value of xy is printed using printf on line number 10:

***
printf("xy = %d\n", xy);
***

The output will be the value of xy, which represents the result of the inequality comparison between x and y.


Finally, we get the solution code:

***
#include

int main() {
int x, y, xy;
x = 10;
y = 11;

xy = (x != y);

printf("xy = %d\n", xy);

return 0;
}
***
one year ago