Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rewrite you program so it can receive the multiplier from the console. Print the table from the given multiplier to 10. If the given multiplier is more than 10 - print only one row with the integer, the given multiplier and the product. See the examples below for more information.
- using System;
- namespace _10._Multiplication_Table_2._0
- {
- class MultiplicationTwo
- {
- static void Main(string[] args)
- {
- int multiplier = int.Parse(Console.ReadLine());
- int givenStart = int.Parse(Console.ReadLine());
- do
- {
- Console.WriteLine($"{multiplier} X {givenStart} = {multiplier * givenStart}");
- givenStart++;
- }
- while (givenStart <= 10);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment