Now "Harry " contains 6 characters, [H=1 a=2 r=3 r=4 y=5 space =6]. So you have to work out how many "Harry "s you can get into the 80 character width of the command window. That is where the arithmetic comes in.Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry
Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry
Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry
Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry
Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry
Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry
Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry Harry
Harry Harry Harry Harry Harry Harry Harry Harry Harry
Carol Murphy wrote:Harry, are you sure that you have to work out how many times the name can be printed completely on each line? Or, rather, just write code that will print to the next line if the complete name doesn't fit?
![]()
Stefan Brandenberger wrote:
Carol Murphy wrote:Harry, are you sure that you have to work out how many times the name can be printed completely on each line? Or, rather, just write code that will print to the next line if the complete name doesn't fit?
![]()
Well, the latter can be evaluated by computing the former, no?
Carol Murphy wrote:Harry, are you sure that you have to work out how many times the name can be printed completely on each line? Or, rather, just write code that will print to the next line if the complete name doesn't fit?
![]()
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I have zero programming exp and my head hurts.