lundi 3 avril 2017

How to draw desired matrix using c++?

Draw below matrix using c++. Problem require a function, which could be called into the main().

x!x!x
~~~~~
x!x!x
~~~~~
x!x!x

I tried comparing the location 0,2,4. and tried to print but is there any other way to do this problem ?

Aucun commentaire:

Enregistrer un commentaire