Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication7
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random r = new Random();
- int[] array;
- array = new int[44];
- for(int i = 0; i < array.Length; ++i)
- {
- array[i] = r.Next(100, 999);
- }
- for(int i = 0; i < array.Length; ++i)
- {
- if(array[i] % 3 == 0)
- {
- Console.WriteLine(array[i]);
- }
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement