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
Jimmacle13mo ago
what is the error?
AlexTheMasterBG
AlexTheMasterBGOP13mo ago
No description
Jimmacle
Jimmacle13mo ago
the order that you pass arguments to a method matters
AlexTheMasterBG
AlexTheMasterBGOP13mo ago
alright thats fixed now thare is also an issue with my ifs
Jimmacle
Jimmacle13mo ago
what is the issue?
AlexTheMasterBG
AlexTheMasterBGOP13mo 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
Jimmacle13mo ago
what does == mean?
AlexTheMasterBG
AlexTheMasterBGOP13mo 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
Jimmacle13mo ago
no it means that it's literally exactly equal to that number
AlexTheMasterBG
AlexTheMasterBGOP13mo ago
thats what i said so i have to change it to => ?
Jimmacle
Jimmacle13mo ago
try and see
AlexTheMasterBG
AlexTheMasterBGOP13mo ago
alright i fixed it thanks

Did you find this page helpful?