James Boss011

James Boss011

  • NA
  • 8
  • 561

Multiplication Solution

Apr 8 2019 8:00 PM
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.
  1. using System;  
  2.   
  3. namespace Multiplicationtable {  
  4.     class MainClass {  
  5.         public static void Main(string[] args) {  
  6.             //declare a variable for storing your input number  
  7.             int num;  
  8.   
  9.             Console.Write("Enter a number >> ");  
  10.             num = Console.Read(); //convert the number from string to numeric  
  11.             //call your funtion with input argument is "num"  
  12.             DisplayMultiplicationTable(num);  
  13.             //freeze your screen so you can see result  
  14.             Console.Read();  
  15.         }  
  16.         //your function will be coded here  
  17.         private static void DisplayMultiplicationTable(int num) { //write your for loop from 2 to 10  
  18.             //for each value, display the multiplication of the input number with the factor  
  19.             for (int factor = 2; xxxxx) //modify the xxxxx  
  20.             Console.WriteLine(xxxx); //use the place holders method to display your results   
  21.         }  
  22.     }  
  23. }

Attachment: untitled_folder_2.zip

Answers (1)