MartinEesmaa

Calculator game

Feb 14th, 2022 (edited)
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Console_test
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Random rand = new Random();
  13.             for (int i = 0; i < 3; i++)
  14.             {
  15.                
  16.  
  17.                 int randomValue = rand.Next(-100,100);
  18.  
  19.                 Console.WriteLine(randomValue);
  20.                
  21.             }
  22.             Console.ReadLine();
  23.         }
  24.  
  25.         static int randomNum()
  26.         {
  27.             return 4;
  28.         }
  29.  
  30.         static int writeOut(int num1, int num2)
  31.         {
  32.             int total = num1 + num2;
  33.           Console.WriteLine(total);
  34.  
  35.           return total;
  36.         }
  37.     }
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment