How to display output in vertical in C++ Programming?

Status
Not open for further replies.

TieFighter

Baseband Member
Messages
57
Location
La Crosse, WI
Re: HOW TO DISPLAY OUTPUT IN VERTICAL IN C++ PROGRAMMING?

It looks like you're reading in the number as an integer with scanf. You might want to consider using a loop to read in individual characters into an array until there are no more characters to read in.
 
Please do not capitalize your topic titles. That is considered shouting and uncalled for. Do it again and your topics will be deleted. Your only 2 topics on site were done this way and it isn't necessary. Your topic will get attention just like everyone else's. You don't have to try and draw attention to it.
 
Actually, there's another way to do it if you aren't sure what loops are yet. Since you specified that it IS a 4 digit positive number, then just read in 4 characters in a row, then print out those characters followed by a new line, like you are trying to do with integers.
 
Status
Not open for further replies.
Back
Top Bottom