
Code:

Output:

Note
break:if i =2 it go to out of loop
Code:

Output:

Note
continue:if i =2 it go to next i value
break:if i =2 it go to out of loop
continue:if i =2 it go to next i value
dowhile loop first print then check the condition at 1st time
both 3 loops print the same output
write a programme that ask the user to enter 2 float type variable and which type Assignment operation want to do and print answer?
this is wrong to fix it see next code
'{}' -curly braces used with 'if' & 'else' statement
but if you want to do only 1 line no need
other wise should use the braces.
Logical Operations
&& - AND
|| - OR
! - NOT
this is a wrong one so you can use 'else if'
to fix it