//zereg devshuuleh
#include<stdio.h>
int main(){
int pow,num,i=1;
long int sum=1;
printf("\nBuhel too oruulna uu ");
scanf("%d",&num);
printf("\nHeden zeregt devshuuleh ve: ");
scanf("%d",&pow);
while(i<=pow){
sum=sum*num;
i++;
}
printf("\n%d-g %d zereg devshuulvel =%ld",num,pow,sum);
return 0;
}
Yu ymb en
ReplyDelete