Skip to content

Programs that can check whether the input is divisible by a certain number.

Notifications You must be signed in to change notification settings

poketech456/DivisibilityTestPrograms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DivisibilityTestPrograms

Programs that can check whether the input is divisible by a certain number without using MODULO Operator.

Idea

  • To explore the Divisibility rules for different numbers!!

Contributing to this project

  • There are folders for each language
  • Add your program in the related folder as language/TestForNumber.extension eg:java/TestFor3.java
  • If the folder for your language is not there then create one.

Getting started

  • Fork this repository (Click the Fork button in the top right of this page, click your Profile Image)
  • Clone your fork down to your local machine
git clone https://github.com/your-username/DivisibilityTestPrograms.git
  • Create a branch
git checkout -b branch-name
  • Make your changes(Choose from the issues)
  • Commit and push
git add .
git commit -m 'Commit message'
git push origin branch-name
  • Create a new pull request from your forked repository (Click the New Pull Request button located at the top of your repo)

def getRemainder(num, divisor): return (num - divisor * (num // divisor))
num = 100 divisor = 7 print(getRemainder(num, divisor))

About

Programs that can check whether the input is divisible by a certain number.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 42.8%
  • Java 30.4%
  • C++ 14.0%
  • JavaScript 8.2%
  • Lua 2.5%
  • Ruby 1.5%
  • PHP 0.6%