+ 1
How to print the crosss letters in output for eg.. MONEY M Y in first line, O E in second line, N in third, vice versa
4 ответов
+ 2
What do you mean ,
The above algorithm actually prints a string in cross form .
+ 1
thanks for the response Atikrant
0
use the following case in a matrix
for(i=0;i<str.length;i++)
{ Console.writeln();
for(j=0;j<str.length;j++)
{
if(i==j||i+j==str.length-1)
{
Console.write(str[i]+" ");
}
else
Console.write(" ");
}
}
I don't know weather the statement is correct as I don't know C# much but the algorithm is correct .
0
it prints the line by keystroke