Advertisement
patrik5

NotDivisibleBy3and7

Mar 23rd, 2014
1,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. class NotDivisibleBy3and7
  5.  
  6. {
  7. static void Main()
  8. {
  9. Console.WriteLine( "Enter nymber. Number is:");
  10. int number=int.Parse(Console.ReadLine());
  11. for (int i = 0; i < number; i++)
  12. {
  13. if ((i % 7 == 0) || (i % 3 == 0))
  14. {
  15. continue;
  16. }
  17. Console.WriteLine(i);
  18. }
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement