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

Did you find this page helpful?