Signup/Sign In

Answers

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

Try this code:

***
#include

int main() {

/*
Y for Yellow
G for Green
R for Red
*/
char signal = 'Y';

if(signal == 'G') {
printf("Go");
} else if(signal == 'Y') {
printf("Wait");
} else if(signal == 'R') {
printf("Stop");
}

return 0;
}
***
one year ago
Please specify the lesson no.
one year ago
Try this code:
***



<br /> My Webpage Title<br />












***
one year ago
Use it like this:
***


Javascript with HTML



Some Page Heading





***

You learn more about this method in upcoming lessons.
one year ago
As asked in the instructions, the code should be like this:
***
#include

int main() {

printf("Here is the largest int value - %d", 2147483647);
return 0;

}
***
one year ago
Try this code:

***
let x = 0;

while(x < 10)
{
if(x == 5) {
x++;
continue;
}
console.log(x);
x++;
}
***
one year ago
Add multiple \n like this:
***
#include

int main() {

printf("I\nlove\nC");
return 0;

}
***
one year ago
Try this:

***
let str1 = `Studytonight`;
let str2 = String(str1);

// write code here

console.log(str1);
console.log(str2);
***
one year ago
You have used too many new line characters. Try this code:

***
#include

int main() {

printf("I\nlove\nC");
return 0;

}
***
one year ago
Try this code:

***
let signal = "red";

/* complete the code */

switch(signal){
case 'green':
console.log("Go");
break;
case 'yellow':
console.log("Wait");
break;

case 'red':
console.log("Stop");
break;

}
***
one year ago
Please provide the level and code you need help with. Thanks!
one year ago