Previous line in C / Matrix

somali.cc's Avatar, Join Date: Aug 2010
Go4Expert Member
Hello frnds,

By using the command printf("\n"); we can go to next line.

BUt how to print an output in previous line ??

Like, I want 2 matrices to be printed as follows :

A= 1 2 B= 5 6
3 4 7 8


Every time I am getting the output as:

A= 1 2
3 4 B= 5 6
7 8
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You have to print 1 2 and 5 6 before printing "\n"
somali.cc's Avatar, Join Date: Aug 2010
Go4Expert Member
Thanx Shabbir. I wl try dat