JSFiddle - React, Tailwind, and code Playground

by sridhar reddy

JavaScript

function print() {
	for (let i = 1; i < 100; i += 1) {
  	if (i % 2 === 0 && i % 5 === 0) {
    	console.log('LeasePlan');
    } else if (i % 2 === 0) {
    	console.log('Lease');
    } else if (i % 5 === 0) {
    	console.log('Plan');
    } else {
    	console.log(i);
    }
  }
}

print();