W1thr

Домашка №13

Jun 1st, 2022 (edited)
860
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. namespace Homeworkk13
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int divisor = 17;
  10.             int minBound = 100;
  11.             int maxBound = 1000;
  12.  
  13.             int count = 0;
  14.  
  15.             for (int i = 0; i < maxBound; i+=divisor)
  16.                 if (i >= minBound)
  17.                     count++;
  18.  
  19.             Console.WriteLine(count);
  20.         }
  21.     }
  22. }
  23.  
Add Comment
Please, Sign In to add comment