當前位置:編程學習大全網 - 電腦編程 - 編程cstdio

編程cstdio

/*輸入三個整數,輸出它們的1、2和3的冪*/

# include & ltstdio.h & gt

# define p(A)printf(" % d \ t % d \ t % d \ n ",mypow(A,1),mypow(A,2),mypow(A,3))

無效總管(無效)

{

int a,b,c;

int mypow(int,int);

Printf("輸入三個整數:");

scanf("%d%d%d ",& amp壹,& ampb & amp;c);

p(a);

p(b);

p(c);

返回;

}

int mypow(int a,int p)

{

for(int I = 1;p;p -)

I * = a;

返回I;

}

  • 上一篇:NBA05年新秀挑戰賽誰得了MVP 詹姆斯得了多少分
  • 下一篇:怎麽獲取圖片中的顏色RGB值
  • copyright 2024編程學習大全網