C# Coding question
Hello, everyone. I'm new to C# and am happy to be learning the language, and happy to be on this site. I'm teaching myself and running into an error with solving a practice problem. Can you tell me why the error is occurring? I can solve for basic output of text and conduct arithmetic operators but I don't understand this problem. Question: Write a C# Sharp program to print the output of multiplication of three numbers which will be entered by the user: Test Data: Input first number to multiply: 2 Input second number to multiply: 3 Input third number to multiply: 6 Expected Output: 2X3X6=36 Here is my code below to solve for it. I would really appreciate some help. Thank you. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void sayHi() { Console.WriteLine("Hello"); Console.WriteLine(-1+4*6); Console.WriteLine((35+5)%7); Console.WriteLine(14+-4*6/11); Console.WriteLine(2+15/6*1-7%2); int 2, 3, 6 Console.Write("2"); num2=Convert.ToInt32(Console.ReadLine()); Console.Write("3"); num3=Convert.ToInt32(Console.ReadLine()); Console.Write("6"); num6 = Convert.ToInt32(Console.ReadLine()); int result = 2 * 3 * 6; Console.WriteLine("Output: {0} x {1} x {2} = {3}", num1, num2, num3, result); } static void Main(string[] args) { sayHi();