Input
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,res=1,i;
clrscr();
printf("Enter the number\n");
scanf("%d",&a);
printf("Enter the Power\n");
scanf("%d",&b);
for(i=b;i>0;i--)
{
res=res*a;
}
printf("a^b=%d\t",res);
getch();
}
Please Submit your Responses |
Authors | |
---|---|
Tinku Singh | |
Hitesh Dhanda |
MrNaukri.com - Get Sarkari Jobs, Results, Off Campus Placement Updates © 2012. All Rights Reserved | |