Complete Video Learning
Table of Contents
#include <conio.h>
#include <math.h>
#include <stdio.h>
void main()
{
int num, exp, res;
printf("Enter the number: ");
scanf("%d", &num);
printf("Enter exponent: ");
scanf("%d", &exp);
res = pow(num, exp); // Calculating power using pow() function
printf("%d to the power %d is: %d", num, exp, res);
getch();
}
Enter the number:
Enter exponent:
4 to the power 3 is: 64
SHOW YOUR SUPPORT FOR NIELITBHU..!!
Dear reader, thank you for joining us. Readers like you are an inspiration for us to pursue NIELITBHU. We need your support or cooperation to further empower NIELITBHU and reach NIELITBHU more people in every corner of the country. Your every support is invaluable to our future.