Radical Developers welcomes all the visitors to be a member of the team. Come join us. Its all about open-source concept.
All Programs are written and tested in MacOS X, Unix, Linux and may not match with the outputs of Turbo C++ in Windows
Pages
Updates
About Us
Showing posts with label
Functions (C)
.
Show all posts
Showing posts with label
Functions (C)
.
Show all posts
Sunday, January 9, 2011
Write a function power(a,b) to calculate the value of a raised to b.
Source Code :
#include<stdio.h>
int power(int a,int b)
{
int i,p=1;
for(i=1;i<=b;i++)
p*=a;
return p;
}
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)