**#include<stdio.h>**

main()

**{**

**int**power (a,b);

**int**a, b, result;

printf("Enter the value of a and b:");

scanf ("%d %d", &a, &b);

result=power(a,b);

printf("%d raised to %d is %d", a, b, result);

**}**

power (

**int**a,

**int**b)

**{**

**int**calculation=1, calc;

**for**(calc=1; calc <=b; calc++)

**{**

calculation=calculation*a;

**continue**;

**}**

**return**(calculation);

**}**

The File can be found at:

Download File

## 3 comments:

may i know whether the CONTINUE statement is required,i think it is not,can u explain me dis plz

can anybody answer my question plzzz...

become a follower for free C,C++ And vb code of my blog:

http://www.a2zhacks.blogspot.com to learn C,C++,VB programming.

Post a Comment