c7-19-1.c 298 B

1234567891011121314
  1. //file1.c
  2. #include <stdio.h>
  3. int A;
  4. int main()
  5. {int power(int);
  6. int b=3,c,d,m;
  7. printf("enter the number a and its power m:\n");
  8. scanf("%d,%d",&A,&m);
  9. c=A*b;
  10. printf("%d*%d=%d\n",A,b,c);
  11. d=power(m);
  12. printf("%d**%d=%d\n",A,m,d);
  13. return 0;
  14. }