C#C
C#3y ago
MaGiiKx

✅ Mathematical Expressions

Hi, for my university assignment, I am required to add complex expressions alongside my variables. The complex expression is just mathematical stuff.

an example is -

var size 10 (this creates a variable with the value of 10.)
size = size * 3 (this should overwrite the value of size to 30.)

i need some help to do this.

when i remove the line - size = size * 3, it draws the shape.

https://hastebin.com/pivuwabelo.csharp
Screenshot_2023-01-02_at_17.29.56.png
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Was this page helpful?