*MULTIPLES OF 3
let i=1;
while(i<=50){
if(i%3==0){
console.log(i);
}
i++
}
Describing code
1.Consider let i=1
2.Enter while condition as (while i<=50)
3.And enter if class for confirming i%3==0
4.print i
5.post increment i
- MULTIPLES OF 5 let i=1; while(i<=50){ if(i%5==0){ console.log(i); } i++; }
Describing code
1.Consider let i=1
2.Enter while condition as (while i<=50)
3.And enter if class for confirming i%5==0
4.print i
5.post increment i
- FLOWCHART FOR THESE TWO PROGRAM

Top comments (0)