Computer Science, asked by siddharthasingh15, 10 months ago

input two numbers and check whether both the numbers are even ir odd. ( Draw a flowchart).​

Answers

Answered by ItzShinyQueen13
13

\huge\purple{\mathbb{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.

\\\\

♥ʜᴏᴘᴇ ɪᴛ ʜᴇʟᴘs ʏᴏᴜ. ㋛

♥ᴘʟᴇᴀsᴇ ғᴏʟʟᴏᴡ ᴍᴇ ᴀɴᴅ ᴍᴀʀᴋ ᴀs ʙʀᴀɪɴʟɪᴇsᴛ. ㋛

Answered by GamiGargi
0

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!!!

Similar questions