Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- { //Multiplication table.
- Console.WriteLine("Please insert the number you want to practise [1...9] : ");
- Int32 n = Int32.Parse(Console.ReadLine());
- for (int i = 1; i < 10; i++)
- {
- Console.Write("{0} * {1} = ", i, n);
- int result = Int32.Parse(Console.ReadLine());
- if (result == i * n)
- {
- Console.WriteLine("True!");
- }
- else
- {
- Console.WriteLine("False!");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement