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)
-
1.TOPUP Cepat Susut Jika anda merasa topup prepaid anda cepat susut walaupun tak banyak call- ada baiknya anda semak log call/sms/content ...
-
Contoh soalan untuk test 1 adalah seperti berikut (soalan dan 'marking' bagi semester sebelum ini)
No comments:
Post a Comment