Computer Science, asked by prof72, 2 months ago

draw flowchart diagram for the following programs using a loop;

a. aprogram that display number 1 to 20.
b. aprogram that display a person name X times.​

Answers

Answered by shilpimittal77092
1

Answer:

mrk me as brainliest

Explanation:

first enter into loop(for or while etc.,) like that for(i=0;i<=21;i++)

if the for loop condition checks it is true or not (i<=21)

if it is true then the next statement is executed otherwise it can come out of the program

if it is TRUE then the nextstatement if(condition) checks if it is divisible by 2 or not(i%2==0)

if it is true then the print statement is executed otherwise it can invoke the program then it will repeated up to the for loop condition is False

Similar questions