Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- //Write a Boolean expression that checks whether a given integer is
- //divisible by both 5 and 7, without a remainder.
- class DivideNumbereByFiveAndSeven
- {
- static void Main()
- {
- bool isTrue = false;
- int n = int.Parse(Console.ReadLine());
- if (n%5 == 0 && n%7 == 0)
- {
- isTrue = true;
- }
- Console.WriteLine(isTrue);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement