• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cash's program please i need your help quickly!!!!!

 
Burak Tass
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
3. Write a program that will input the number of lines n, and produce a triangle as shown in sample outputs below (line numbers 9 and 5):
Enter line: 9
73 64 55 46 37 28 19 10 1
57 49 41 33 25 17 9 1
43 36 29 22 15 8 1
31 25 19 13 7 1
21 16 11 6 1
13 9 5 1
7 4 1
3 1
1 Enter line: 5
21 16 11 6 1
13 9 5 1
7 4 1
3 1
1
 
Henry Wong
author
Marshal
Pie
Posts: 21446
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, please read this...

http://faq.javaranch.com/java/NotACodeMill


Okay, so, what have you done so far? What specific issue that you are currently having? Please describe it, and we'll try to give you a hint in the right direction.

Henry
 
Burak Tass
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't do this i only want to learn codes and i have an exam tomorrow can you send me this program codes this is not assignment i want to study my exam please help me
 
fred rosenberger
lowercase baba
Bartender
Posts: 12188
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folk here will NOT give you the answer. If they do, moderators (such as myself) will delete it. We're here to help you learn, not spoon feed you answers to homework or test questions.
 
Burak Tass
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moderators please help me
 
Henry Wong
author
Marshal
Pie
Posts: 21446
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burak Tass wrote:Moderators please help me


If your exam is tomorrow, then I would recommend that you give up on these assignments, and go back and reread your text book. Learning from "example codes" is overrated in my opinion -- and the text may be better use of your time.

Henry
 
Burak Tass
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i can't do this myself and i need your help and codes i will fail
 
Henry Wong
author
Marshal
Pie
Posts: 21446
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burak Tass wrote:But i can't do this myself and i need your help and codes i will fail



Look, you said "this is not assignment" and you just "want to study [for your] exam". Well, I am saying, if it is not an assignment, then skip it.... with only a day to study for the exam, it is best to just go back and reread your text book. Looking at other people's code is not the best use of your time at this point.

Henry
 
fred rosenberger
lowercase baba
Bartender
Posts: 12188
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burak Tass wrote:Moderators please help me
The moderators job is NOT to help you at all, but to enforce the polices here at the ranch. That includes not spoon-feeding you the answers.

Now, many moderators are also swell people, and experts in Java. Many will spend LOTS of time helping you learn. Henry (a moderator, by the way) is clearly doing exactly that. He's given you several tips and suggestions. Follow his advice, and you'll figure it out.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15459
42
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burak Tass wrote:But i can't do this myself and i need your help and codes i will fail

This sounds harsh, but if you have an exam tomorrow and you have no idea to do this, that means you didn't study, and I'm sorry to say, but you deserve to fail.
 
W. Joe Smith
Ranch Hand
Posts: 710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am compelled to agree with Jesper. Judging by your other threads, and I am trying to be as nice as possible, you waited until the last minute, didn't put the effort forward and now expect others to give you answers which will just not happen here.

Don't think that the Ranch is a bad place. We are here to help (I have gotten so much help here!) but you have to show the effort first. If you would have posted a piece of code, explained what it was supposed to do, what it was actually doing, and asked for help you would have gotten plenty of replies.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49865
71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much, W Joe Smith
 
paul wheaton
Trailboss
Pie
Posts: 21684
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burak Tass wrote:But i can't do this myself and i need your help and codes i will fail


Good! The grade is supposed to reflect your knowledge.

When you are ready to learn perhaps we will see you here again.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic