• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple problem with for loops  RSS feed

 
Korwin Bieniek
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there
I have a problem with writing such code
Attach some simple explanation if possible but mostly i need just code
photo of the output is in the attachment



          

17036939_1496222387078682_1147317130_o.jpg
[Thumbnail for 17036939_1496222387078682_1147317130_o.jpg]
Output
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37507
552
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Korwin,
Welcome to CodeRanch! While we are happy to work with you, we are not a code mill. Nobody is going to write the code for you.

So let's start at the beginning. Do you know how to write a method that simply prints a letter? Do you know how to do any of the loop? Show what you have so far.
 
Korwin Bieniek
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm totally a beginner and also couldn't attend my last lesson
I think it would be easier for me to draw than explain
I have no clue how to move my "lower" B right while keeping only one A in my whole output
So i don't know how to make such "spaces" in my code
Also i don't know how to put another B on the right side of my middle A
Not sure if this is understandable
helpranch.png
[Thumbnail for helpranch.png]
 
Liutauras Vilda
Sheriff
Posts: 4927
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

I did not understand the board  content, but I didn't look at it more than 3 seconds. I would like that you'd explain in your words and would give couple of simple written as text (here) examples, what is the problem you are trying to solve?

I'm not doing that not because i'm too lazy to look at picture, but because it will help you better understand the problem while you explain to everybody

Give a shot and we'll see how we can all help you to come up with a solution.
 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please do not use images to present code. The forum software has [code]code tags[/code] for that very thing and I encourage you to use them.
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome again

Are you supposed to draw a cross of letters where each arm is n − 1 characters long?
Write down on paper how you think you would do that; once you have the logic it will be easy to convert to code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!