Advertisement
adriyanbulgary

OperatorsExpressionsAndStatements - Task 3

Jun 13th, 2014
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2. /*
  3. * Write a Boolean expression that checks for given integer
  4. * if it can be divided (without remainder) by 7 and 5 in the same time
  5. */
  6.  
  7. class DivideBy35
  8. {
  9.     static void Main()
  10.     {
  11.         Console.WriteLine("Please enter an integer number");
  12.         int number = int.Parse(Console.ReadLine());
  13.         bool devideNumber = number % 35 == 0;
  14.         Console.WriteLine(devideNumber);
  15.  
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement