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 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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

8th Oct 2017, 12:56 PM
Mohamed Azharudeen
Mohamed Azharudeen - avatar
4 Respostas
+ 2
What do you mean , The above algorithm actually prints a string in cross form .
11th Oct 2017, 1:20 PM
RZK 022
RZK 022 - avatar
+ 1
thanks for the response Atikrant
8th Oct 2017, 2:08 PM
Mohamed Azharudeen
Mohamed Azharudeen - avatar
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 .
8th Oct 2017, 2:07 PM
RZK 022
RZK 022 - avatar
0
it prints the line by keystroke
8th Oct 2017, 5:31 PM
Mohamed Azharudeen
Mohamed Azharudeen - avatar