Write a c program to calculate the power - CodeTextPro | Free Web Tutorial

Codetextpro Provides free Web tutorial, HTML, CSS, C, C++, Java, JavaScript, PHP, MySql, Python, Program, Programming Notes, Programming Questions and more.

Programming

Saturday, January 5, 2019

Write a c program to calculate the power

Calculate the power of a number

#include<math.h>
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
printf("enter the value of a and b");
scanf("%d%d",&a,&b);
c=pow(a,b);
printf("%d",c);
getch();
}

No comments:

Post a Comment