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
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
English,
1 month ago
Business Studies,
1 month ago
English,
1 month ago
Math,
2 months ago
World Languages,
2 months ago
English,
9 months ago
Hindi,
9 months ago
English,
9 months ago