This forum is now read-only. Please use our new forums! Go to forums
bad code?
Hi, i got this error: “it looks like your code echoes 2091 instead of 2091 (17 * 123)”
my code below:
<!DOCTYPE html>
Answer 5135c01726bb8e3f71002a3e
6 votes
I have got it working with the following code:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<!-- Include your PHP code between the <p></p> tags! -->
<p><?php echo 17 * 123; ?></p>
</body>
</html>
My error was similar to yours:
Oops, try again. It looks like your code echoes \n 2091 instead of 2091 (17 * 123).
The \n stands for line break. Rearranging the code so it is all on one line (i.e. the
andAnswer 5135a6caf1c968c9220020e3
Answer 515c51a263ecdd911f000362
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
5 comments
I hit the submit button 10 times and voila it worked lol
I got that \n error too. Put it all on one line and it worked, like you said. Thanks!
still not working for me
THANKS
odd