1.Fahamkan struktur program Java di bawah.
2. Lukis flowchart yang setara dengan logik program Java berkenaan.
3. Hanya guna tulisan tangan untuk melukis dan menulis.
4. Emailkan hasil kerja ("scan atau snap gambar") kepada nazri.ibrahim@gmail.com
5. Email perlu sampai selewat-lewatnya jam 6.00pm pada 27/4/2017.
6. Terima Kasih.
import java.util.Scanner;
public class lab27April {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Sila Masukkan empat nombor ");
int n1 = input.nextInt();
int n2 = input.nextInt();
int n3 = input.nextInt();
int n4 = input.nextInt();
System.out.println("Rojak");
if(n1>n2)
{
System.out.println("Cincau");
if(n3>n4)
{
System.out.println("Nasi Ayam");
}
}
else
{
System.out.println("Nasi Tomato");
}
System.out.println("Pasembor");
}
}
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. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...
No comments:
Post a Comment