Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- int a,b;
- printf("base^exp\n");
- printf("Enter base :");
- scanf("%d",&a);
- printf("Enter exp :");
- scanf("%d",&b);
- printf("Result = %.2lf",pow(a,b));
- return 0;
- }
Add Comment
Please, Sign In to add comment