C De Power Kullanarak Üst Almak
C De Power Kullanarak Üst Almak
Power fonksiyonu ile üst almak istiyorsanız buyrun kodlar:
#include <stdio.h>
#include <math.h>
int main(){
int a;
int n;
printf(“Enter a number: “);
scanf(“%d”, &a);
printf(“Enter exp: “);
scanf(“%d”, &n);
int sum = pow(a,n);
printf(“%d power %d is %d”,a,n,sum);
}