hamaXD

basic POW

Oct 20th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5.     int a,b;
  6.     printf("base^exp\n");
  7.     printf("Enter base :");
  8.     scanf("%d",&a);
  9.     printf("Enter exp :");
  10.     scanf("%d",&b);
  11.     printf("Result = %.2lf",pow(a,b));
  12.     return 0;
  13. }
Add Comment
Please, Sign In to add comment