I don't understand why I am getting a cannot convert to string with _one but not the other 3! Yes, I'm new to programming and loosing my mind trying to figure out why stackoverflow is requiring me to enter more words than I needed to ask my question!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace diviTwo
{
class Program
{
static void Main(string[] args)
{
//Print Test Problems
var n = "\n";
var one = "-1 + 4 * 6";
var two = "(35 + 5) % 7";
var three = "14 + -4 * 6 / 11";
var four = "2 + 15 / 16 * 1 - 7 % 2";
Console.WriteLine(one+ n+ two+ n+ three+ n+ four+ n);
//Print Results of Test Problems
var _one = -1 + 4 * 6;
var _two = (35 + 5) % 7;
var _three = 14 + -4 * 6 / 11;
var _four = (2 + 15) / ((16 * 1) - (7 % 2));
Console.WriteLine(Convert.ToString(_one)+ n+ _two+ n+ _three+ n+ _four+ n);
}
}
}