Write a C program for Calculation ab
Power Function:- Power Function is used for power value.
Syntax for thi function is :-
pow(base,power);
Program:-
#include <stdio.h>
#include <math.h>
#include <conio.h>
void main()
{
int a,b, C;
clrscr();
printf("Enter the value of a and b");
scanf("%d%d",&a,&b);
c=pow(a,b);
printf("%d",C);
getch();
}
Output:-
input:-
Enter the value of a, b
a=10
b=2
Enter the value of a, b
a=10
b=2
output:-
100
100
0 comments:
Post a Comment