From 80c97d2727ec7e4b9b94c463501a2fb534f931db Mon Sep 17 00:00:00 2001 From: mcqueen Date: Sat, 1 Jul 2023 12:08:51 +0600 Subject: [PATCH 1/2] Dimik divisor tutorial Added --- dimik-divisor/en.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dimik-divisor/en.md diff --git a/dimik-divisor/en.md b/dimik-divisor/en.md new file mode 100644 index 00000000..e69de29b From 516aad53854defe17e5cc6362c94393d56ef6256 Mon Sep 17 00:00:00 2001 From: mcqueen Date: Thu, 6 Jul 2023 21:42:58 +0600 Subject: [PATCH 2/2] Dimik divisor tutorial Added --- dimik-divisor/en.md | 74 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/dimik-divisor/en.md b/dimik-divisor/en.md index e69de29b..b7fe8ff4 100644 --- a/dimik-divisor/en.md +++ 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 "<