formula for finding a square of a number
.net, c#, for-loop, perfect-square
Solution
Try this
for (int counter = 1; counter <= 10; counter++)
{
Console.WriteLine(counter*counter);
}
Problem
I need to display the squares of the numbers 1-10 using a for loop. This is what I have so far. I don't know what I am missing. Any help would be much appreciated. ``` for (int counter = 1; counter <= 10; counter++) { Console.WriteLine(counter * counter); } Console.ReadLine(); ```