mikeyworx

ACTIVITY 6 COMPRO2 B

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