Advertisement
luckiest

C# (C# Shell App Paste)

Jun 5th, 2020
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. //Disclaimer: The creator of 'C# Shell (C# Offline Compiler)' is in no way responsible for the code posted by any user.
  2. using System;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Collections.Generic;
  6.  
  7. namespace CSharp_Shell
  8. {
  9.  
  10.     public static class Program
  11.     {
  12.         public static void Main()
  13.         {
  14.            int num01 = 0;
  15.            int num02 = 0;
  16.            Console.Write("enter a number to be multiplied: ");
  17.            num01 = Convert.ToInt32(Console.ReadLine());
  18.            Console.Write("another number: ");
  19.            num02 = Convert.ToInt32(Console.ReadLine());
  20.            Console.WriteLine("the result is " + num01 * num02);
  21.            Console.ReadKey();
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement