Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace IJunior
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random random = new Random();
- int number = random.Next(0, 28);
- int multiples;
- int count = 0;
- int minNumber = 99;
- int maxNumber = 1000;
- for (int i = 0; i < 100; i++)
- {
- multiples = i * number;
- if(multiples > minNumber && multiples < maxNumber)
- {
- count++;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment