thegrudge

DivideBy7And5

Nov 11th, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. using System;
  2. class DivideBy7And5
  3. {
  4.     static void Main()
  5.     {
  6.         int inVar = int.Parse(Console.ReadLine());
  7.         bool isEquel7n5 = (inVar > 0) && (inVar % 7 == 0) && (inVar % 5 == 0);
  8.         Console.WriteLine("{0} - divided by 7 & 5 -> {1}", inVar, isEquel7n5);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment