C4Codes
Pages
Home
quotedilse
book-kida
Wednesday, 18 March 2015
wap for x^n
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float x,value;
int n;
clrscr();
printf("\n enter the value of x and n");
scanf("%f%d",&x,&n);
value=pow(x,n);
printf("%f^%d=%f",x,n,value);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment