FREE : [ Study Material ] NDA/SSB Preparation : Check Now!!! | Latest: HR Interview Questions:CHECK | Like Us :

Friday, 21 December 2012

Program to calculate the Power of a Number | C program


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();
}



Turbo C




Please Submit your Responses
 

Results

get our extension

Like Us on FB

    Freshers Jobs

    Donate

    DMCA Protected

    You are Visitor Number

    Interview Questions

    SSB Questions

      Authors
    Tinku Singh
    Hitesh Dhanda

    MrNaukri.com - Get Sarkari Jobs, Results, Off Campus Placement Updates © 2012. All Rights Reserved | Back To Top |

    © 2013 A Product of IBC Network