±Û¾´ÀÌ :žçÀÌ 2000³â 5¿ù 22ÀÏ 12:02:27
In Reply to: °¡¸£ÃÄ ÁÖ¼¼¿ä...... posted by À̰濵 on 2000³â 5¿ù 22ÀÏ 00:02:31:
¾î¶² Çü½ÄÀÇ 4Ä¢¿¬»êÀÎÁö...
±×³É... ´Ü¼øÇÑ 4Ä¢¿¬»êÀÎÁö... ¾Æ´Ï¸é... ´Ù¸¥Çü½ÄÀÎÁö...
ÀÛ¾÷ÇϽŠ¼Ò½º°¡ ÀÖ´Ù¸é.. ±×°ÍÀ» °°ÀÌ ¿Ã·Áº¸¼¼¿ä..
±×·³.. Á¦°¡ Çѹø ºÁµå¸±²²¿ä...^^
¿ì¼±... °£´ÜÇÑ ¿¹Á¦¸¦ ¿Ã·Áº¼²²¿ä... Çѹø Çغ¸¼¼¿ä.
public class SwitchSt2 {
public static void main(String[] args) throws java.io.IOException{
int x, y, p = 0;
char c;
System.out.print("Enter the operatior & two number = ");
c = (char) System.in.read();
x = (int) System.in.read() - '0';
y = (int) System.in.read() - '0';
switch(c){
case '+' : { p = x+y;
System.out.println(x+"+"+y"+"="+p);
} break;
ÀÌ·±½ÄÀ¸·Î... »çÄ¢¿¬»êÀ» °è»êÇÏ¸é µË´Ï´Ù..
À̸¸...