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;
- namespace Console_test
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random rand = new Random();
- for (int i = 0; i < 3; i++)
- {
- int randomValue = rand.Next(-100,100);
- Console.WriteLine(randomValue);
- }
- Console.ReadLine();
- }
- static int randomNum()
- {
- return 4;
- }
- static int writeOut(int num1, int num2)
- {
- int total = num1 + num2;
- Console.WriteLine(total);
- return total;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment