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;
}
***
9 months ago
Please specify the lesson no.
9 months ago
Try this code:
***



<br /> My Webpage Title<br />












***
9 months ago
Use it like this:
***


Javascript with HTML



Some Page Heading





***

You learn more about this method in upcoming lessons.
9 months 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;

}
***
9 months ago
Try this code:

***
let x = 0;

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

int main() {

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

}
***
9 months ago
Try this:

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

// write code here

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

***
#include

int main() {

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

}
***
9 months 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;

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