Excel in math, science, and engineering

New user? Sign up

Existing user? Sign in

Hi all. What's the best way to include code in a solution? I've never done this before today. Any help is appreciated!

Note by Ryan Tamburrino 1 year, 9 months ago

Sort by:

1

insert code here

Log in to reply

@Vincent Miller Moral – Yeah, like that! How do you make that box?

1 2

This is an example Edited by Calvin

@Ryan Tamburrino – Add ``` to the start and end of your code sequence. I've edited your comment so you can click "edit" to see the change.

For more information, see this. – Calvin Lin Staff · 1 year, 9 months ago

@Calvin Lin – Thanks a bunch! – Ryan Tamburrino · 1 year, 9 months ago

If you mean LaTeX, then just begin your code with \(

and end with \)

Example, if you wanted to write the square root of 2, you would do \(\sqrt{2}

and then end it with \).

\(\sqrt{2}\).

When you post, at the bottom, there is a formatting guide, it will tell you all you need to know. – Alan Yan · 1 year, 9 months ago

@Alan Yan – Sorry, I meant code as in a programming language, e.g. Python, Java. Should've been more precise. – Ryan Tamburrino · 1 year, 9 months ago

Problem Loading...

Note Loading...

Set Loading...

## Comments

Sort by:

TopNewestLog in to reply

Log in to reply

For more information, see this. – Calvin Lin Staff · 1 year, 9 months ago

Log in to reply

– Ryan Tamburrino · 1 year, 9 months ago

Thanks a bunch!Log in to reply

If you mean LaTeX, then just begin your code with \(

and end with \)

Example, if you wanted to write the square root of 2, you would do \(\sqrt{2}

and then end it with \).

\(\sqrt{2}\).

When you post, at the bottom, there is a formatting guide, it will tell you all you need to know. – Alan Yan · 1 year, 9 months ago

Log in to reply

– Ryan Tamburrino · 1 year, 9 months ago

Sorry, I meant code as in a programming language, e.g. Python, Java. Should've been more precise.Log in to reply