input two numbers and check whether both the numbers are even ir odd. ( Draw a flowchart).
Answers
One common thing to do with conditionals is to check if a number is odd or even. If a number is evenly divisible by 2 with no remainder, then it is even. You can calculate the remainder with the modulo operator % like this num % 2 == 0 . If a number divided by 2 leaves a remainder of 1, then the number is odd.
♥ʜᴏᴘᴇ ɪᴛ ʜᴇʟᴘs ʏᴏᴜ. ㋛
♥ᴘʟᴇᴀsᴇ ғᴏʟʟᴏᴡ ᴍᴇ ᴀɴᴅ ᴍᴀʀᴋ ᴀs ʙʀᴀɪɴʟɪᴇsᴛ. ㋛
If you like it please mark it as brainliest and start following me at Gami Gargi for more help and thank this answer.
One common thing to do with conditionals is to check if a number is odd or even. If a number is evenly divisible by 2 with no remainder, then it is even. You can calculate the remainder with the modulo operator % like this num % 2 == 0 . If a number divided by 2 leaves a remainder of 1, then the number is odd
Thank you!!!