1234567891011121314 |
- //file1.c
- #include <stdio.h>
- int A;
- int main()
- {int power(int);
- int b=3,c,d,m;
- printf("enter the number a and its power m:\n");
- scanf("%d,%d",&A,&m);
- c=A*b;
- printf("%d*%d=%d\n",A,b,c);
- d=power(m);
- printf("%d**%d=%d\n",A,m,d);
- return 0;
- }
|