C Program to find result of power value - c programs
//C Program to find result of power value
#include <stdio.h>
#include <conio.h>
main()
{
int x,y,p;
clrscr();
printf("enter values of x amd y");
scanf("%d%d",&x,&y);
p=pow(x,y);
printf("the result of x to power y is ",p);
getch();
}
#include <conio.h>
main()
{
int x,y,p;
clrscr();
printf("enter values of x amd y");
scanf("%d%d",&x,&y);
p=pow(x,y);
printf("the result of x to power y is ",p);
getch();
}
No comments:
Post a Comment