Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _03DivideBy7And5
- {
- class DivideBy7And5
- {
- static void Main()
- {
- Console.Write("Enter a number: ");
- int number = int.Parse(Console.ReadLine());
- if ((number % 5 == 0) && (number % 7 == 0))
- {
- Console.WriteLine(true);
- }
- else
- {
- Console.WriteLine(false);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement