You are required to provide:-
(i) Algorithm (Flowchart or Pseudocode) and
(ii) Java program
for the following problem.
Write a program that reads positive integers, finds the smallest of them. Assume that the input ends with number -1. Suppose that you entered 3 5 2 5 5 5 -1; the program finds that the smallest is 2.
Here are sample runs of the program:
Sample 1: Enter numbers:
3
5
2
5
5
5
-1
The smallest number is 2.
Due Date : 10/4/2016
Subscribe to:
Post Comments (Atom)
Cara download Installer windows 10 dalam format ISO
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...

-
Latihan MS Word dengan elemen-elemen:- image, word art, table, shape dan word formatting (font,size,bold, italic,underline)
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
1. What, in general terms, is the distinction between computer organization and computer architecture? 2. What, in general terms, is the ...
No comments:
Post a Comment