Computer Programming
C Programming
Intel 8085
How To

How to write a program to find the delimiter matching in stacks?

User Avatar
Wiki User
2009-08-15 14:08:31

== == using recursions:

unsigned int Factorial( unsigned int x) { if(x>0) { return (

x * Factorial(x-1)); } else { return(1); }

}

factorial:

unsigned int Factorial( unsigned int x)

{

unsigned int u32fact = 1;

if( x == 0)

{

return(1);

}

else

{

while(x>0)

{

u32fact = u32fact *x;

x--;

}

}

}


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.