From 2a429778d9e5cb028acd3a1b7accc083419a08d9 Mon Sep 17 00:00:00 2001 From: Mayank Deshpande Date: Thu, 8 Oct 2020 22:18:20 +0530 Subject: [PATCH] Divisibility check --- Problems/Problem_7/Problem_7.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Problems/Problem_7/Problem_7.md diff --git a/Problems/Problem_7/Problem_7.md b/Problems/Problem_7/Problem_7.md new file mode 100644 index 0000000..aa4ba46 --- /dev/null +++ b/Problems/Problem_7/Problem_7.md @@ -0,0 +1,25 @@ +# Write a program that asks for a number from the user and prints “YES!” if the number is divisible by 5, and it prints “NOPE!” otherwise, then modify it to also ask which number to check it with if divisible. + +## example cases: + +``` +INPUT: 25 + +YES! + +INPUT: 42 + +NOPE! +``` + +## second part: + +``` +INPUT: 4, 24 + +YES! + +INPUT: 8, 42 + +NOPE! +```