using static System.Console;
public class Program {
public static void Main() {
int []vetor = { 1, 2, 3, 4, 5, 6, 7, 8, 10 };
for (int i = 0; i < vetor.Length; i++ ) vetor[i] *= vetor[i];
WriteLine($"{string.Join(", ", vetor)}.");
}
}
//https://pt.stackoverflow.com/q/457059/101
dXNpbmcgc3RhdGljIFN5c3RlbS5Db25zb2xlOwoKcHVibGljIGNsYXNzIFByb2dyYW0gewogICAgcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKSAgIHsKICAgICAgICBpbnQgW112ZXRvciA9ICB7IDEsIDIsIDMsIDQsIDUsIDYsIDcsIDgsIDEwIH07CiAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCB2ZXRvci5MZW5ndGg7IGkrKyApIHZldG9yW2ldICo9IHZldG9yW2ldOwogICAgICAgIFdyaXRlTGluZSgkIntzdHJpbmcuSm9pbigiLCAiLCB2ZXRvcil9LiIpOwogICAgfQp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS80NTcwNTkvMTAx
1, 4, 9, 16, 25, 36, 49, 64, 100.