differentiate between determinant loop and indeterminant loop in visual basics
Answers
Answered by
0
Answer:
ᴘʜᴏᴛᴏsʏɴᴛʜᴇsɪs ɪs ᴛʜᴇ ᴘʀᴏᴄᴇss ᴜsᴇᴅ ʙʏ ᴘʟᴀɴᴛs , ᴀʟɢᴀᴇ ᴀɴᴅ ᴄᴇʀᴛᴀɪɴ ʙᴀᴄᴛᴇʀɪᴀ ᴛᴏ ʜᴀʀɴᴇss ᴇɴᴇʀɢʏ ғʀᴏᴍ sᴜɴʟɪɢʜᴛ ᴀɴᴅ ᴛᴜʀɴ ɪᴛ ɪɴᴛᴏ ᴄʜᴇᴍɪᴄᴀʟ ᴇɴᴇʀɢʏ. ʜᴇʀᴇ, ᴡᴇ ᴅᴇsᴄʀɪʙᴇ ᴛʜᴇ ɢᴇɴᴇʀᴀʟ ᴘʀɪɴᴄɪᴘᴀʟ ᴏғ ᴘʜᴏᴛᴏsʏɴᴛʜᴇsɪs ᴀɴᴅ ʜɪɢʜʟɪɢʜᴛ ʜᴏᴡ sᴄɪᴇɴᴛɪsᴛᴀ ᴀʀᴇ sᴛᴜᴅʏɪɴɢ ᴛʜɪs ɴᴀᴛᴜʀᴀʟ ᴘʀᴏᴄᴇss ᴛᴏ ʜᴇʟᴘ ᴅᴇᴠᴇʟᴏᴘ ᴄʟᴇᴀɴ ғᴜᴇʟs ᴀɴᴅ sᴏᴜʀᴄᴇs ᴏғ ʀᴇɴᴇᴡᴀʙʟᴇ ᴇɴᴇʀɢʏ.
Answered by
3
A looping construct that has no termination condition is called as an indeterminate loop. An indeterminate loop can be formed wither using the for loop or the while loop
♨️ See the attachment.
Noteice the for loop condition. It is “1==1” which will always be true and hence it will not exit the loop at all. Instead if iobne has to exit the loop, it needs to have a break statement somewhere within the loop.
Attachments:
Similar questions