Art, asked by janvi9880, 4 months ago

How is if statement different from if…else statement?​

Answers

Answered by Itzmissprincess
10

Answer:

The if statement doesn't have else part means in if statement it will only specify that it is true or false. But in if else statement if the statement is false then it is specified in else part.

Answered by bhoomikasanjeev2009
3

Answer:

ᴛʜᴇ ɪғ sᴛᴀᴛᴇᴍᴇɴᴛ ᴀʟᴏɴᴇ ᴛᴇʟʟs ᴜs ᴛʜᴀᴛ ɪғ ᴀ ᴄᴏɴᴅɪᴛɪᴏɴ ɪs ᴛʀᴜᴇ ɪᴛ ᴡɪʟʟ ᴇxᴇᴄᴜᴛᴇ ᴀ ʙʟᴏᴄᴋ ᴏғ sᴛᴀᴛᴇᴍᴇɴᴛs ᴀɴᴅ ɪғ ᴛʜᴇ ᴄᴏɴᴅɪᴛɪᴏɴ ɪs ғᴀʟsᴇ ɪᴛ ᴡᴏɴ'ᴛ. ... ᴡᴇ ᴄᴀɴ ᴜsᴇ ᴛʜᴇ ᴇʟsᴇ sᴛᴀᴛᴇᴍᴇɴᴛ ᴡɪᴛʜ ɪғ sᴛᴀᴛᴇᴍᴇɴᴛ ᴛᴏ ᴇxᴇᴄᴜᴛᴇ ᴀ ʙʟᴏᴄᴋ ᴏғ ᴄᴏᴅᴇ ᴡʜᴇɴ ᴛʜᴇ ᴄᴏɴᴅɪᴛɪᴏɴ ɪs ғᴀʟsᴇ.

Similar questions