Help
just trying to create a programme that adds up an even and an odd together
14 Replies
what's the meaning of the first
if
even number divided by two leaves no remainders
it's an empty
if
if (even % 2 == 0)
or are you trying to check that the even is even and the odd is odd
don't really like this style of if
usage though
but, what's the actual problemdo you want to check if the user wrote an odd and an even number?
i don't really get what you tried to do
it would be wise to give an indication to the user if the validation of oddness/evenness fails
why are you overcomplicating things
because I made it simple originally
yeh
im not this advanced
thanks guys will try work on it
idk what parse is shoulf check it out
seeing the level of the original problem, i think its a bit too advanced for that xd
int.parse is converting string to int
i thought that was converttoint32
it works too ofc
but basically the class Convert can convert string to any type, so basically if u have a custom class/struct it can convert string into it
as for int.Parse is the int's own convert function
ah so there are specific comversions
makes sende