Write an assembly language program in c program to find out factorial of given number?

Answer:

void main(){

int num;

clrscr();

scanf("%d",&num);

asm mov ax,1;

asm mov bx,1;

asm mov cx,num;

come:

asm mul bx;

asm inc bx;

asm dec cx;

asm jnz come;

printf("%d ",_AX);

getch();

}

More question

3 comments:

Unknown said...

Write an assembly language program to compute the standard deviation and variance
100
of the given array of numbers. Execute the program using 8086 microprocessor.

Unknown said...

hi friends
am dinesh i want some docements in assembly language program to using c language.
my id cdinu77@gmail.com pls mail me am wait for your good res.

Unknown said...

hi madam
am dinesh if u got assmebly language program using in c pls send me my e-mail id.
thanking you