| | |
|
¿À´Ã |
202 |
¾îÁ¦ |
148 |
ÃÖ´ë |
1,112 |
Àüü |
353,829 |
|
|
| | |
|
ÀÛ¼ºÀÏ : 19-07-20 21:33
´ÙÀ½ ±¸¹®ÀÇ ÃÑ ¼öÇà ´Ü°è ¼ö ?
|
|
±Û¾´ÀÌ :
ajdcnl
Á¶È¸ : 2,583
|
ÇÁ·Î±×·¥ÀÇ ¼º´É Æò°¡¸¦ À§ÇØ ÇÁ·Î±×·¥À» ½ÇÇà½ÃÄѼ
¿Ï·áÇÏ´Â µ¥ ÇÊ¿äÇÑ ½Ã°£ÀÇ ¾çÀ» ÃøÁ¤ÇÏ´Â °ÍÀ»
½Ã°£º¹Àâµµ ¶ó°í ÇÑ´Ù
½ÇÇà ½Ã°£À» ÃøÁ¤ÇÏ´Â ¹æ¹ýÀ¸·Î ÇÁ·Î±×·¥ ±¸¹® ³»ÀÇ
¿¬»êÀÇ ¼öÇà Ƚ¼ö¸¦ Á¶ÇÕÇÏ´Â °è»ê¹ýÀ» Àû¿ëÇÒ °æ¿ì,
´ÙÀ½ ±¸¹®ÀÇ ÃÑ ¼öÇà ´Ü°è¼ö·Î ¸Â´Â °ÍÀº ?
procedure SUM (A, n)
totsum = 0
for i = 1 to n
totsum = totsum + A ( i )
end
print ( totsum )
end SUM
______________________________________________________________________________________________
¼±Áö
¤¡. 3n + 1
¤¤. 3n + 3
¤§. 4n + 1
¤©. 4n + 3
_______________________________________________________________________________________________
Á¤´ä ¤¤
_______________________________________________________________________________________________
±³¼ö´Ô ÀÌ·± ¹®Á¦´Â ¹Ýº¹¹® °ü·Ã ¹®Á¦Àΰ¡¿ä ?
ÇÁ·Î±×·¥ ±¸¹®ÀÇ ´Ü°è¼ö¸¦ ±¸ÇÏ´Â ¹®Á¦ÀÎ °Í °°Àºµ¥¿ä
ºñ½ÇÇ๮ÀÇ ºóµµ¼ö´Â 0À¸·Î ÃøÁ¤ÇÑ´Ù°í Çϴµ¥¿ä
ÀÌ·± °ÍÀº ¹®Á¦ÁýÀÇ Çؼ³À» ÀоîºÁµµ Àß ¸ð¸£°Ú½À´Ï´Ù ¤Ì..¤Ì
--> Çؼ³
°¢ ¿¬»ê ±¸¹®¸¶´Ù ´Ü°è¼ö¿Í ºóµµ¼ö¸¦ °¢°¢ ±¸ÇÏ°í ´Ü°è¼ö * ºóµµ¼ö ¸¦ ¼öÇàÇÏ°í
ÇØ´ç ±¸¹®ÀÇ ÃÑ ´Ü°è¼ö¸¦ »êÃâÇÏ°í
±×¸®°í ±¸¹®ÀÇ ÃÑ ´Ü°è¼öÀÇ ÃÑÇÕÀ» ±¸Çϸé ÃÖÁ¾ ÀüüÀÇ ´Ü°è¼ö°¡ µÈ´Ù
|
|
|