Area of a circle

In the photos shown here I have written the code to perform the function but I can’t figure out how to write them to in one script to answer each problem individually And not just one at a time or two answers in the same test. It’s a quiz on SoloLearn with c# I’m thinking maybe ConvertToDouble is somehow supposed to be implemented



Hard to look at code in an image… you may want to go look at some quiz tutorials as there are plenty of them and most of them organize their data into some kind of structure, and this might be helpful to you.

Other than that, how to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

Please use code tags: Using code tags properly

It’s a few bars of code. It is a quiz for coding…I have looked everywhere. I would think sololearn would reveal how they expect the answers to be fulfilled

I guess that the quiz might be setting the value of “radius” when testing your program somehow.

Try using the variable radius instead of hard-coding the radius value (6.4).

2 Likes

Wait a second. Do you mean that you are participating in a C# quiz and you reached out to the Untiy3d forum, a forum for game developers to help you solve the quiz question? At least that’s what it seems to look like. We are game developers and this forum is about professional game development with the Unity game engine. How is what you’re doing related to Unity? The forum is not a place to ask generic C# questions.

If this is actually about game or application development, please provide more context. Also the sticky post in the scripting subforum shows how to post code snippets properly.

22/7 * r2? or mathf.PI, but come on cheating on a quiz man.

It’s a free app. One of many I use to learn coding to make my unity built games better and further them along. They provide little information and I believe expect a bit more knowledge
Then I was given on account of using the free version. Also it’s a bonus bonus question . I use unity explicitly so I want to use the forums more and use them properly. Thank y’all for the tips and advice!

I want to thank you for your input here and for being unbiased. I will let u know (once I feel prepared enough to go back in lol) exactly what they were expecting of me :slight_smile: