Recent Posts

9-latest-250px-course

Write a C program for power function

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
output:-
100
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment