• Post Reply Bookmark Topic Watch Topic
  • New Topic

Find the smallest value  RSS feed

 
Shal Lango
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(Find the Smallest Value ) Write an application that finds the smallest of several integers . Write a program  which first asks the user to enter the number of values  to enter, then asks for each value , and finally prints out the lowest value  of those entered.

What I have so far works logicallly but I need help formatting so that the lines are printed on the same line.


I would appreciate if someone can help me fix the formatting so that it looks like the expected output in the attachment. Thank you
int.JPG
[Thumbnail for int.JPG]
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: Check the API docs for what these methods do
 
Campbell Ritchie
Marshal
Posts: 56522
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shalmika Elango wrote:. . . . . .
Please read that code very carefully.
Always put a space on each side of a binary operator, including > and =. We have some suggestions about formatting here. I myself would say you write backwards, and that works better if you have a decent text editor (my favourite on Windows would be NotePad++) and enable the options shown here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!