±Û¾´ÀÌ :±èÁÖ¿¬ 1999³â 7¿ù 21ÀÏ 20:45:11
import java.io.*;
class Store1{
public static void main(String args[]) throws IOException{
char ch;
int inn=0;
DataInputStream stdIn = new DataInputStream(System.in);
for(int i=0; i<3; i++){
System.out.println("Input article code & number");
ch=stdIn.readChar();
inn=stdIn.readInt();
System.out.print("¹°Ç°: "+ch+" °³¼ö: "+inn);
}
}
}
ÀÌ·¸°Ô ÇÏ¸é °á°ú°¡
C:\My Documents\javaexample>java Store1
Input article code & number
a
1
¹°Ç°: ÚÀ °³¼ö: 170986762Input article code & number
b
2
¹°Ç°: â¡ °³¼ö: 171052298Input article code & number
c
3
¹°Ç°: ? °³¼ö: 171117834
C:\My Documents\javaexample>
ÀÌ·¸°Ô Á¦´ë·Î ÂïÈ÷Áö°¡ ¾Ê¾Æ¿ä.. ¿ÕÃʺ¸¶ó ¹» À߸øÇÑÁöµµ ¸ô°Ú°í..
¾Ë·ÁÁÖ½Ã¸é °¨»ç.. ¹Ì¸® ²Ù¹÷.