Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /*
- * Write a Boolean expression that checks for given integer
- * if it can be divided (without remainder) by 7 and 5 in the same time
- */
- class DivideBy35
- {
- static void Main()
- {
- Console.WriteLine("Please enter an integer number");
- int number = int.Parse(Console.ReadLine());
- bool devideNumber = number % 35 == 0;
- Console.WriteLine(devideNumber);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement