mikeyworx

ACTIVITY 6 COMPRO2 A

Feb 18th, 2023
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. using System;
  2. // GONZALES JOHN MICHAEL
  3. // BSIT CUBAO
  4. // ACTIVITY 6A
  5. namespace ACT6
  6. {
  7.     class Program
  8.     {
  9.         public static void Main(string[] args)
  10.         {
  11.             Console.Title = ("ACT5 BSIT CUBAO");
  12.             Console.ForegroundColor = ConsoleColor.DarkGreen;
  13.             int multiplicand, mulitiplier, number = 10;
  14.  
  15.            
  16.             Console.Write("Enter Multiplicand:");
  17.             multiplicand = Convert.ToInt32(Console.ReadLine());
  18.             Console.Write("Enter Multiflier:");
  19.             mulitiplier = Convert.ToInt32(Console.ReadLine());
  20.  
  21.             while (multiplicand <= number )
  22.             {
  23.                 int product = multiplicand * mulitiplier;
  24.                 Console.WriteLine("{0} * {1} = {2}", multiplicand, mulitiplier, product);
  25.                 multiplicand++;
  26.             }
  27.             Console.Write("Press any key to continue. . . ");
  28.             Console.ReadKey(true);
  29.  
  30.         }
  31.     }
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment