Advertisement
Charybdizs

Operators

Nov 28th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Practice
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.  
  10.             int Number1 = 8;
  11.             int Number2 = 2;
  12.             string Desire;
  13.  
  14.             Console.WriteLine("Welcome to math with charybdizs! Our special guests today are 8 and 2!");
  15.             Console.WriteLine("What would you like them to do today? Addition, Subtraction, Multiplication, or Division?");
  16.  
  17.             Desire = Console.ReadLine();
  18.            
  19.             if (Desire == "Addition")
  20.             {
  21.  
  22.                 Console.WriteLine(Number1 + Number2);
  23.  
  24.             }
  25.  
  26.             else if (Desire == "Subtraction")
  27.             {
  28.  
  29.                 Console.WriteLine(Number1 - Number2);
  30.  
  31.             }
  32.  
  33.             else if (Desire == "Multiplication")
  34.             {
  35.  
  36.                 Console.WriteLine(Number1 * Number2);
  37.  
  38.             }
  39.  
  40.             else if (Desire == "Division")
  41.             {
  42.  
  43.                 Console.WriteLine(Number1 / Number2);
  44.  
  45.             }
  46.  
  47.             else
  48.             {
  49.  
  50.                 Console.WriteLine("I don't understand you. gg wp it's been fun. Fuck this.");
  51.  
  52.             }
  53.  
  54.             Console.ReadLine();
  55.  
  56.         }
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement