ÓãCÂÛ̳

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
²é¿´: 16588|»Ø¸´: 10

ΪʲôforÖ»Ö´ÐÐÒ»´ÎÄØ£¿

[¸´ÖÆÁ´½Ó]
·¢±íÓÚ 2013-6-16 16:31:12 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ

ÂíÉÏ×¢²á£¬½á½»¸ü¶àºÃÓÑ£¬ÏíÓøü¶à¹¦ÄÜ^_^

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕ˺ţ¿Á¢¼´×¢²á

x
                                                        ÎªÊ²Ã´ÎÒµÄforÖ»Ö´ÐÐÒ»´Î¾Í²»Ö´ÐÐÁËÄØ?
                                           Ñ­»·ÊÇÕý³£Ñ­»·£¬¾ÍÊǺóÃæµÄÓï¾äÖ»Ö´ÐÐÒ»´Î¡£  ÄÄλ´óÉñÀ´Ö¸µãһϰ¡¡£Ð»Ð»À²~

#include<stdio.h>
void main()
{int pow(int a, int b);
int i,k,mao;
  
scanf("%d%d",&i,&k);
  mao=pow (i,k);
printf("%d",mao);
}
int  pow(int a, int b)
{  int o;
for(;b>0;b--)
o=a*a;
return (o);
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 17:07:37 | ÏÔʾȫ²¿Â¥²ã
Â¥Ö÷È·¶¨ÉÏÃæµÄ´úÂëÄܹ»ÔËÐУ¿£¿powº¯ÊýÃ÷ÏÔÉÙÁËÒ»¸ö»¨À¨ºÅѽ
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 17:09:14 | ÏÔʾȫ²¿Â¥²ã
bûÓÐÉùÃ÷ºÍ¸³Öµ£¡
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 17:36:28 | ÏÔʾȫ²¿Â¥²ã
²»»á°¡£¬Çó¸ßÊÖ½âÊÍ¡£¡£¡£¡£
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 17:38:32 | ÏÔʾȫ²¿Â¥²ã
ÄãÔõô·¢´úÂëÖ»·¢Ò»½Ø°¡
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 17:38:58 | ÏÔʾȫ²¿Â¥²ã
Â¥Ö÷£¬¶¼²»ÖªµÀÄãÊäÈëµÄÊÇʲôÊýÖµ£¿£¿£¿£¿
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 17:51:59 | ÏÔʾȫ²¿Â¥²ã
²¢ÇÒÄãµÄo=a*a,ÓÉÓÚ£¬aµÄÖµ²¢Ã»Óиı䣬ËùÓÃÑ­»·ÁËÒ²ÊÇÏàͬµÄÖµ£¨a*a£©£¬Èç¹ûÒª¿´µ½Ð§¹û¿ÉÒԸijÉa
=*a£»o=a£»ÕâÑù·µ»ØµÄÖµ¾Í»á¸ù¾ÝbµÄ²»Í¬¶ø²»Í¬£¬µ±È»Èç¹ûaÊÇ1£¬ÄDz»¹ÜÑ­»·¶àÉÙ´Îruturn £¨0£©»¹ÊÇ1

ÆÀ·Ö

²ÎÓëÈËÊý 1Óã±Ò +2 ÊÕÆð ÀíÓÉ
Pisces.L.ÄæÌì + 2

²é¿´È«²¿ÆÀ·Ö

С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 17:57:14 | ÏÔʾȫ²¿Â¥²ã

int  pow(int a, int b)
{
    int o;       //Õâ¾ä¿ÉÒÔ²»Òª
   for(;b>0;b--)
   a=a*a;   
   o=a;       //Õâ¾ä¿ÉÒÔ²»Òª
   return (o);//»òÕßreturn a
}
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 23:03:07 | ÏÔʾȫ²¿Â¥²ã
#include<stdio.h>

void main()
{
int i,k,mao;
scanf("%d,%d",&i,&k);
int pow(int, int);       
mao=pow(i,k);
printf("%d\n",mao);


}

int  pow(int a, int b)
{
int o;
for(;b>0;b--)
{
o=a*a;
}
return o;
}
Â¥Ö÷Õâ¸öÎÒ¿´Á˺ó¤Ê±¼ä£¬·´Õý¶ÔÕâ¸ö¸Ð¾õ²»ÊǺÜÀí½â£¬ÎҸоõÄǸöpowº¯ÊýÖзµ»ØµÄÖµ¾ÍÊÇa*aµÄÖµ£¬forÑ­»·µÄ×îÖյõ½µÄÖµ»¹ÊÇa*aµÄֵѽ£¡ÄãÔÙ¿´¿´°É£¡
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-16 23:12:10 | ÏÔʾȫ²¿Â¥²ã
ÊÇÒªÇóaµÄ£¨b+1£©´Î·½£¿
ÄãÔõô¾ÍÖªµÀֻѭ»·ÔËÐÐÁËÒ»´ÎÄØ£¿ÊÇͨ¹ýoµÄ½á¹ûÀ´¿´µÄ£¿
oµÄ½á¹ûÑ­»·¶àÉٴζ¼µÈÓÚa*aµÄ¡£
Õý³£µÄÀí½âÓ¦¸ÃÊÇÇóaµÄb´Î·½£¬µ÷Óú¯ÊýÈçÏ£º
int mao(int a,int b)
{int o=1;
for(;b>0;b--)
o=o*a;
return o;
}
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
·¢±íÓÚ 2013-6-17 13:17:43 | ÏÔʾȫ²¿Â¥²ã
ÄÄÓÐֻѭ»·ÁËÒ»´Î£¿£¿£¿£¿£¿×îºóÃæ²î¸ö´óÀ¨ºÅ¡­¡­
С¼×Óã×îÐÂ¿Î³Ì -> https://ilovefishc.com
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

СºÚÎÝ|ÊÖ»ú°æ|Archiver|ÓãC¹¤×÷ÊÒ ( ÔÁICP±¸18085999ºÅ-1 | ÔÁ¹«Íø°²±¸ 44051102000585ºÅ)

GMT+8, 2025-7-23 11:11

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí