diff --git a/dimik-divisor/en.md b/dimik-divisor/en.md new file mode 100644 index 00000000..b7fe8ff4 --- /dev/null +++ b/dimik-divisor/en.md @@ -0,0 +1,74 @@ +## Dimik Divisor + +### What the problem wants + +Basically you will be given a number you need to find all the divisor from it + +You can find more about divisors [here](https://www.splashlearn.com/math-vocabulary/division/divisor) + +### Solution + +The most basic way to solve this is as following + +- Start a loop from 1 to N , Where N is the number given +- Check if the any number can divide N with a remainder of 0 +``` 6 % 3 == 0 ``` That means the remainder of 6 after dividing it by 3 is 0 +- You can print them as they are the divisor +> Be careful about newline and extra space. If you are stuck with that problem see the code to know how to handle it + +### CPP Code + +```cpp + +#include // includes necessary library +using namespace std; +#define ll long long int +int main() +{ + int test; + cin>>test; + for(int t=1;t<=test;t++) + { + int num; + cin>>num; + cout<<"Case "<