Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- namespace IMJunior
- {
- class Program
- {
- static void Main ( string [] args )
- {
- List<int> list = new List<int> ();
- Random random = new Random ();
- for ( int i = 0 ; i < 10 ; i++ )
- {
- list.Add ( random.Next ( 10, 100 ) );
- }
- foreach ( int number in list.FindAll (i=>i>50) )
- {
- Console.WriteLine ( number );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment