Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

assembly program

can someone help me with this program i dont know how to do this program
without using macros.......

a program to initialize each element of an array
int fact[6]; to the factorial of the subscript

Comments

  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : can someone help me with this program i dont know how to do this
    : program
    : without using macros.......
    :
    : a program to initialize each element of an array
    : int fact[6]; to the factorial of the subscript
    :

    Easiest is to create a function Factorial to calculate the factorial of a number. Then in the main function of your program you create a loop from 0 to 5 and fill each element of fact by calling the Factorial with parameter the index and then storing the returned value.
    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.