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
12 Replies
what is the error?
the order that you pass arguments to a method matters
alright thats fixed now
thare is also an issue with my ifs
what is the issue?
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
what does
==
mean?it has to either be 2 or 2.99 to give the reply from the first iff
thats its basically eaqual to that number
no
it means that it's literally exactly equal to that number
thats what i said
so i have to change it to => ?
try and see
alright i fixed it
thanks