Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Previous line in C / Matrix (http://www.go4expert.com/forums/previous-line-c-matrix-t23449/)

somali.cc 30Sep2010 12:57

Previous line in C / Matrix
 
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 30Sep2010 13:01

Re: Previous line in C / Matrix
 
You have to print 1 2 and 5 6 before printing "\n"

somali.cc 30Sep2010 13:29

Re: Previous line in C / Matrix
 
Thanx Shabbir. I wl try dat


All times are GMT +5.5. The time now is 14:40.