an issue with my method

I got help earlier on how to declare a method from my class to Program.cs and i decided to make the code a little bigger and it gives me an error now
No description
No description
12 Replies
Jimmacle
Jimmacle11mo ago
what is the error?
AlexTheMasterBG
AlexTheMasterBGOP11mo ago
No description
Jimmacle
Jimmacle11mo ago
the order that you pass arguments to a method matters
AlexTheMasterBG
AlexTheMasterBGOP11mo ago
alright thats fixed now thare is also an issue with my ifs
Jimmacle
Jimmacle11mo ago
what is the issue?
AlexTheMasterBG
AlexTheMasterBGOP11mo ago
im trying to make it so for an example with the range of 2 to 2.99 gives the same answer so 2.1 2.2 2.3 ect. but instead it goes to the last else where its invalid number
Jimmacle
Jimmacle11mo ago
what does == mean?
AlexTheMasterBG
AlexTheMasterBGOP11mo ago
it has to either be 2 or 2.99 to give the reply from the first iff thats its basically eaqual to that number
Jimmacle
Jimmacle11mo ago
no it means that it's literally exactly equal to that number
AlexTheMasterBG
AlexTheMasterBGOP11mo ago
thats what i said so i have to change it to => ?
Jimmacle
Jimmacle11mo ago
try and see
AlexTheMasterBG
AlexTheMasterBGOP11mo ago
alright i fixed it thanks
Want results from more Discord servers?
Add your server