Write a program that evaluate y = xn

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

void main()
{
       clrscr();
    int x,n;
       scanf("%d %d", &x, &n);
    printf("%.0lf",pow(x,n));
       getch();
}

No comments:

Post a Comment