InterviewSolution
Saved Bookmarks
| 1. |
Write a program to print the even nunmbers from 10 to 20 and draw flowchart for it |
|
Answer» How do I draw a flowchart to PRINT even NUMBERS between 0 and 21? 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 FalseExplanation: |
|