Skip to content

Program that prints all the numbers from 1 to 100. However, for multiples of 3, instead of the number, print "Linio". For multiples of 5 print "IT". For numbers which are multiples of both 3 and 5, print "Linianos".

License

Notifications You must be signed in to change notification settings

HancilSequeira/PHPNumberPrinting1To100

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPNumberPrinting1To100

Program that prints all the numbers from 1 to 100. However, for multiples of 3, instead of the number, print "Linio". For multiples of 5 print "IT". For numbers which are multiples of both 3 and 5, print "Linianos".

Prerequisite:

  1. PHP 7 and above
  2. PHPUnit plugins for test cases

Executing This program

  1. Clone the program from this repository https://github.com/HancilSequeira/PHPNumberPrinting1To100
  2. In terminal go the folder "PHPNumberPrinting1To100"
  3. Run php index.php in terminal and press enter

Test run

  1. Run phpunit PrintNumber.php

About

Program that prints all the numbers from 1 to 100. However, for multiples of 3, instead of the number, print "Linio". For multiples of 5 print "IT". For numbers which are multiples of both 3 and 5, print "Linianos".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages