Нақты оң Х санының нақты Ү дәрежесін табу функциясын құру
#include<conio.h>
#include<stdio.h>
#include<math.h>
float dar(float X,float Y){
float res;
if (X>0){
res=pow(X,Y);
return res;
}
else{
return 0;
}
}
main(){
float X,Y;
printf("X manin engiz->");
scanf("%f",&X);
printf("Y manin engiz->");
scanf("%f",&Y);
printf("Dar=%3.3f",dar(X,Y));
getch();
}
