A Program That Read Two numbers (a,b) & Display ab (a to the power b).

#include<stdio.h>
#include<conio.h>

void main()
{
    int a,b,i;
    long int p=1;
    clrscr();
    printf("Enter 1st number, a = ");
    scanf("%d",&a);
    printf("Enter 2nd number,b = ");
    scanf("%d",&b);

    for(i=1;i<=b;i++)
       p=p*a;

    printf("%d to th power %d = %ld",p);

    getch();
}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........