º» °Ô½ÃÆÇÀº ¼ö¾÷½Ã°£¿¡ Çлýµé ½Ç½ÀÀ» À§ÇÑ °Ô½ÃÆÇÀÔ´Ï´Ù.
º» °Ô½ÃÆÇ¿¡ ¿Ã¶ó¿Í ÀÖ´Â ÇÁ·Î±×·¥Àº
´ëºÎºÐ ¿Ã¹Ù¸£Áö ¾ÊÀº
ÇÁ·Î±×·¥ÀÔ´Ï´Ù.
+
À̸§
+
À̸ÞÀÏ
+
ȨÆäÀÌÁö
+
Á¦¸ñ
+
°ü·Ã¸µÅ©
+
¹®¼À¯Çü
ºÐ·ù
ÇÁ·Î±×·¡¹Ö¾ð¾î
¼ÒÇÁÆ®¿þ¾îÀÇÀÌÇØ
°´Ã¼ÁöÇâ¾ð¾î
ÀڷᱸÁ¶
ÄÄÇ»Å;ð¾î2
ºñ°ø°³
package novseven;import java.util.Scanner;public class good { public static void main(String[] args) { System.out.println("1.´õÇϱâ 2.»©±â 3.°öÇϱâ 4.³ª´©±â"); Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); System.out.println("µÎ ½Ç¼ö¸¦ ¶ç¾î¾²±â ±âÁØÀ¸·Î ÀÔ·ÂÇϽÿÀ"); double b = scanner.nextDouble(); double c = scanner.nextDouble(); switch(a) { case 1: System.out.println(b+c); break; case 2: System.out.println(b-c); break; case 3: System.out.println(b*c); break; case 4: System.out.println(b/c); break; default: System.out.println("Á¦´ë·Î µÈ ¼±ÅÃÀ» ÇϽÿÀ"); } scanner.close(); }}
+
ÆÄÀÏ÷ºÎ1
+
ÆÄÀÏ÷ºÎ2
+
Æнº¿öµå
+ º» °Ô½ÃÆÇÀº ±Û °Ô½ÃÈÄ ¼öÁ¤ ¹× »èÁ¦°¡ ºÒ°¡´ÉÇϵµ·Ï ¼³Á¤µÇ¾î ÀÖ½À´Ï´Ù.
+ Æнº¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼Å¾ß ±Û ¼öÁ¤ ¹× »èÁ¦°¡ °¡´ÉÇÕ´Ï´Ù.
+ ¾÷·Îµå´Â 10MB ±îÁö °¡´ÉÇÕ´Ï´Ù.
+ ¾÷·Îµå´Â ¸µÅ©µµ °¡´ÉÇÕ´Ï´Ù.(¸µÅ©¹æ¹ý : http://www.kimsmall21.com/xxx.gif)
+ ÆÄÀÏ÷ºÎ½Ã µÎ°³ÀÇ ÆÄÀÏÀ» ¸ðµÎ ¾÷·ÎµåÇÒ °æ¿ì, ÷ºÎÆÄÀÏ1¸¸ ÀÚµ¿½ÇÇàµË´Ï´Ù.
+ ¿å¼³ ¹× ±âŸ ¼º°Ý¿¡ ¸ÂÁö ¾Ê´Â ±ÛÀº »ï°¡ ÁÖ¼¼¿ä.