Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   input tipe data string (https://forum.ceriwis.com/showthread.php?t=575183)

Badguy13 20th November 2011 11:06 AM

input tipe data string
 
permisi agan sist,,ane baru belajar java nih mau nanya



<div style="margin:20px; margin-top:5px; ">
Quote:





import java.util.Scanner;



public class input nilai

{

public static void main(String[] args)

{

Scanner input = new Scanner(System.in);

int nilai;



System.out.print("Masukkan nilai ujian = ");

nilai = input.nextInt();



if(nilai >=90 && nilai


All times are GMT +7. The time now is 06:52 PM.