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 Problem_3_DivideBy7and5
- {
- class Devide
- {
- static void Main()
- {
- Console.Write("Enter the integer number: ");
- int n = int.Parse(Console.ReadLine());
- // if (n == 0) { Console.WriteLine("false"); return; }
- if (n % 5 == 0 && n % 7 == 0 && n !=0)
- {
- Console.WriteLine("true");
- }
- else
- {
- Console.WriteLine("false");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement