hello im having an issue i wanted to come up with my own little easy project for drawing out a pyramid on my console application to help me understand for loops better ive got then down enought to understand the for loops and also get the point where itll create a right triangle with numbers that are printed within the for loop printing the col
WHAT I'VE TRIED
i have tried keeping the same structure and just doing Console.Write("#");
ERROR: error CS1501: No overload for method 'Write' takes 0 arguments
which i dont fully understand cause its saying its not taking an argument but isnt the string being there the argument to begin with?
I have also tried initializing the string before trying to print it to the console so for example i did
for (int row = 0;row < 10;row++)
{
for (int col = 0; col < row; col++)
{
string materials = "#";
Console.Write(materials);
}
Console.Write();
}
i thought this would work cause this time it wasnt being passed some rando string that hadnt been init but it still threw up the same error so no im kinda at a loss i tried using AI to see if it could find a fix but it gave me the same solutions that i already tried plus i hate learning from ai SOOO
Any help would be appreciated and I thank you for reading my post!