So there are some parts of this solution I have done and some not. Can someone solve this solution? I also have the original way that it was for reference in this file. this is from visual studio from mac.
- using System;
- namespace Multiplicationtable {
- class MainClass {
- public static void Main(string[] args) {
- //declare a variable for storing your input number
- int num;
- Console.Write("Enter a number >> ");
- num = Console.Read(); //convert the number from string to numeric
- //call your funtion with input argument is "num"
- DisplayMultiplicationTable(num);
- //freeze your screen so you can see result
- Console.Read();
- }
- //your function will be coded here
- private static void DisplayMultiplicationTable(int num) { //write your for loop from 2 to 10
- //for each value, display the multiplication of the input number with the factor
- for (int factor = 2; xxxxx) //modify the xxxxx
- Console.WriteLine(xxxx); //use the place holders method to display your results
- }
- }
- }
Shweta LodhaPosted Apr 8, 2019, 9:51 PM