Given a Number N check if it Prime or Not?

I have already made half of the flowchart but stuck at one point. Suppose if I want to come out of the loop by using break statement. Then, can i directly show the arrow to the next step or will I have to use a block in between for break statement and if yes, then what type of block should I use ( like processing block or any other block) ?

hello @yashsharma4304
use decision block ,for breaking condition and then simply show the next step of execution.
if after breaking u want to output somethng then show output block.

So suppose if I have made a decision block for checking whether a number is divisible by i or not then I will have two conditions either yes or no. And now I want if no then update the value of i and if yes then break out of the loop. Then you want to say that I actually don’t need to use any block for break statement and simply I should move to next step by using arrow.

for no case use arrow and point it to process block write ur increment statement in that block and then join it to next step.

yeah … … . . . . . . . . . . . . . . .

1 Like

Ok thank you for resolving my doubt.